build(ci): unify push_images logic and add global PUSH_IMAGES env
This commit is contained in:
parent
605720c265
commit
ec6f66087c
5
.github/workflows/build-base-images.yml
vendored
5
.github/workflows/build-base-images.yml
vendored
@ -55,6 +55,11 @@ env:
|
||||
REGISTRY: ${{ inputs.registry || github.event.inputs.registry || 'ghcr.io' }}
|
||||
ORG: ${{ inputs.org || github.event.inputs.org || 'cloud-neutral-toolkit' }}
|
||||
|
||||
# Push control
|
||||
PUSH_IMAGES: ${{ github.event_name == 'push'
|
||||
|| (github.event_name == 'workflow_call' && inputs.push_images)
|
||||
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.push_images == 'true') }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user