chore: update attest to 0.5.1

- also set user agent in context
This commit is contained in:
attest-release[bot]
2024-09-09 17:11:44 +00:00
committed by James Carnegie
parent eeeceddac4
commit 6b99024a27
5 changed files with 24 additions and 126 deletions

View File

@@ -19,10 +19,12 @@ RUN --mount=type=secret,id=GITHUB_TOKEN <<EOT
EOT
# ---
ARG VERSION="dev"
RUN --mount=type=bind,source=.,target=/app \
--mount=type=cache,target=$GOPATH/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o /bin/attest main.go
go build -ldflags "-X main.version=$VERSION" -o /bin/attest main.go
FROM ${BASEIMAGE} AS production