From 90747634f0ea13f1bb28746ed5cfc2fc68e11254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20N=C3=B8rgaard?= Date: Thu, 28 Aug 2025 11:05:00 +0200 Subject: [PATCH] feat: login to ghcr for goreleaser to be able to push docker images --- .github/workflows/go-cd.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go-cd.yaml b/.github/workflows/go-cd.yaml index 71f2768..d0f034e 100644 --- a/.github/workflows/go-cd.yaml +++ b/.github/workflows/go-cd.yaml @@ -55,6 +55,13 @@ jobs: if: inputs.go-private != '' run: git config --global url."https://${{ env.GH_USERNAME }}:${{ env.GH_TOKEN }}@github.com".insteadOf "https://github.com" + - name: Log in to the Docker registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Run GoReleaser Release uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6 with: