feat: enhance build workflow to include optional base image rebuild trigger
Some checks failed
Build Worker Base and Application Images / deploy-stack (push) Blocked by required conditions
Build Worker Base and Application Images / check-base-changes (push) Successful in 12s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Has been cancelled

This commit is contained in:
Siwat Sirichai 2025-08-10 19:53:33 +07:00
parent 244ec65c09
commit 7b9eee1ad9

View file

@ -6,6 +6,12 @@ on:
- main - main
- dev - dev
workflow_dispatch: workflow_dispatch:
inputs:
force_base_build:
description: 'Force base image build regardless of changes'
required: false
default: 'false'
type: boolean
jobs: jobs:
check-base-changes: check-base-changes:
@ -28,7 +34,7 @@ jobs:
build-base: build-base:
needs: check-base-changes needs: check-base-changes
if: needs.check-base-changes.outputs.base-changed == 'true' || github.event_name == 'workflow_dispatch' if: needs.check-base-changes.outputs.base-changed == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.force_base_build == 'true')
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
packages: write packages: write