From a9b0be26c6d9b5151a63088365c58d8241abc64e Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Wed, 20 Jul 2022 09:38:17 -0400 Subject: [PATCH] ci: add ghcr.io login so goreleaser can push docker images --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ba910d..3a765a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,12 @@ jobs: run: | go mod tidy go test -v ./... + - name: Docker Login (ghcr.io) + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GH_TAGGER_GORELEASER_DEPLOY_PAT }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: @@ -32,4 +38,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TAGGER_GORELEASER_DEPLOY_PAT }}