Skip to content

Commit c116ae2

Browse files
pfrederiksenclaude
andcommitted
fix: Add Docker authentication for GHCR in release workflow
Add docker/setup-buildx-action and docker/login-action steps before GoReleaser to properly authenticate with GitHub Container Registry. This fixes the 'unauthorized: unauthenticated' error when pushing Docker images. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent cfa343d commit c116ae2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
- name: Run tests
3131
run: go test -v ./...
3232

33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
36+
- name: Login to GitHub Container Registry
37+
uses: docker/login-action@v3
38+
with:
39+
registry: ghcr.io
40+
username: ${{ github.repository_owner }}
41+
password: ${{ secrets.GITHUB_TOKEN }}
42+
3343
- name: Run GoReleaser
3444
uses: goreleaser/goreleaser-action@v6
3545
with:

0 commit comments

Comments
 (0)