From ec6f66087c69951718868be3443160e395ebca77 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sat, 6 Dec 2025 22:31:46 +0800 Subject: [PATCH] build(ci): unify push_images logic and add global PUSH_IMAGES env --- .github/workflows/build-base-images.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-base-images.yml b/.github/workflows/build-base-images.yml index bf4a638..eccb13b 100644 --- a/.github/workflows/build-base-images.yml +++ b/.github/workflows/build-base-images.yml @@ -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: