feat: publish signed Docker image to GAR on release#7
Merged
Conversation
Add GoReleaser dockers_v2 config to build and push a minimal scratch-based Docker image to GAR as part of each release. Both release binaries and Docker images are signed with cosign (keyless, via Sigstore) using GoReleaser's signs and docker_signs pipelines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The google-github-actions/auth step writes a temporary credentials file to the workspace, causing goreleaser to fail with "git is in a dirty state". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The dockers_v2 feature uses buildx with --push and --attest flags, which require a buildx builder (the default docker driver doesn't support attestations). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ericnorris
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dockers_v2config to build and push a minimal scratch-based Docker image to GAR as part of each releasesignsanddocker_signspipelines.gitignoreso goreleaser doesn't fail with "git is in a dirty state"docker/setup-buildx-actionrequired bydockers_v2for attestation supportTest plan
🤖 Generated with Claude Code