diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 1eb6c54c42ba1..be5162dfdf8cb 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -58,7 +58,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-ort.outputs.tags }} labels: ${{ steps.meta-ort.outputs.labels }} cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache @@ -80,7 +80,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-ort-minimal.outputs.tags }} labels: ${{ steps.meta-ort-minimal.outputs.labels }} target: minimal