From db7fcfe0ed4c59240328221496eb2e8f4dc28068 Mon Sep 17 00:00:00 2001 From: zaba505 Date: Wed, 12 Oct 2022 22:11:56 -0400 Subject: [PATCH] build(evrys): login into ghcr.io --- .github/workflows/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b4cc6e..206bba0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,19 @@ jobs: - name: Test run: go test -v -race -cover ./... - - uses: goreleaser/goreleaser-action@v2 + - name: Login to GitHub Container Registry + id: registry_login if: startsWith(github.ref, 'refs/tags/') + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - id: goreleaser + uses: goreleaser/goreleaser-action@v2 + if: startsWith(github.ref, 'refs/tags/') + needs: registry_login with: distribution: goreleaser version: latest