only push if refs/heads/main or refs/tags/*

This commit is contained in:
mauwii 2023-02-09 00:15:46 +01:00
parent c3ad1c8a9f
commit 307e7e00c2
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -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 }}