diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 2dac30df0c..88ce0b7385 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -83,7 +83,7 @@ jobs: context: . file: ${{ env.DOCKERFILE }} platforms: ${{ env.PLATFORMS }} - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: PIP_EXTRA_INDEX_URL=${{ matrix.pip-extra-index-url }}