diff --git a/.github/workflows/push-to-docker.yml b/.github/workflows/push-to-docker.yml index 103d716..318c1aa 100644 --- a/.github/workflows/push-to-docker.yml +++ b/.github/workflows/push-to-docker.yml @@ -40,13 +40,18 @@ jobs: name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v2 + - + name: Check snapshot + if: "!startsWith(github.ref, 'refs/tags/')" + id: snapshot + run: echo '::set-output name=ARG::--snapshot' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: distribution: goreleaser version: latest - args: build --rm-dist + args: build --rm-dist ${{ steps.snapshot.outputs.ARG }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -