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
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:
parent
244ec65c09
commit
7b9eee1ad9
1 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,12 @@ on:
|
|||
- main
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
force_base_build:
|
||||
description: 'Force base image build regardless of changes'
|
||||
required: false
|
||||
default: 'false'
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
check-base-changes:
|
||||
|
@ -28,7 +34,7 @@ jobs:
|
|||
|
||||
build-base:
|
||||
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
|
||||
permissions:
|
||||
packages: write
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue