diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index fd670b4..85f43e6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -66,7 +66,7 @@ jobs: # Tag `latest` on every commit pushed to master # https://github.com/docker/metadata-action/issues/112 flavor: | - latest=${{ github.ref == 'refs/heads/master' }} + latest=${{ github.ref == 'refs/heads/main' }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -75,5 +75,6 @@ jobs: uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: . + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}