build(ci): unify push_images logic and add global PUSH_IMAGES env

This commit is contained in:
Haitao Pan 2025-12-06 22:31:46 +08:00
parent 605720c265
commit ec6f66087c

View File

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