CI: skip push step on PRs

Add the condition on the step level and not the push action. This way
it's clear nothing got pushed from the CI overview.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
pull/117/head
Paul Spooren 2023-06-21 09:26:46 +02:00 committed by Paul Spooren
parent 0a2b84ab1e
commit b3af84bc5e
1 changed files with 2 additions and 1 deletions

View File

@ -359,9 +359,10 @@ jobs:
run: docker run --platform=linux/${{ matrix.arch }} ${{ steps.build.outputs.imageid }} uname -m
- name: Push
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: ${{ steps.build_args.outputs.args }}
labels: ${{ steps.meta.outputs.labels }}