mirror of https://github.com/openwrt/docker.git
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
parent
0a2b84ab1e
commit
b3af84bc5e
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue