From a986ae349f26e200930377db6282f2d3961f3aa4 Mon Sep 17 00:00:00 2001 From: Takuto Komazaki Date: Mon, 12 Sep 2022 07:47:54 +0000 Subject: [PATCH] fix CI --- .github/workflows/build-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index ea00994..c5d712a 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -32,6 +32,14 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.19 + - + name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2