From 307e7e00c2ee492fd3cb43261c1d37ecca004e58 Mon Sep 17 00:00:00 2001 From: mauwii Date: Thu, 9 Feb 2023 00:15:46 +0100 Subject: [PATCH] only push if `refs/heads/main` or `refs/tags/*` --- .github/workflows/build-container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}