skip docker push for PRs

This commit is contained in:
Ralf Vogler 2025-05-24 22:40:22 +02:00
parent c5f061c7d5
commit 02005b6fee

View file

@ -71,8 +71,8 @@ jobs:
if: ${{ env.IMAGE_TAG != '' }} if: ${{ env.IMAGE_TAG != '' }}
with: with:
context: . context: .
# push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
push: ${{ secrets.DOCKERHUB_USERNAME != '' }} # here we can access secrets # push: ${{ secrets.DOCKERHUB_USERNAME != '' }} # here we can access secrets
# TODO speed up by building in parallel? https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners # TODO speed up by building in parallel? https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
build-args: | build-args: |