diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 27b86c2..414f38e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -49,7 +49,7 @@ jobs: uses: docker/build-push-action@v2.7.0 with: context: . - push: ${{ contains(github.ref, 'master') }} + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} builder: ${{ steps.buildx.outputs.name }}