File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Deploy to Production
33on :
44 push :
55 branches : [main]
6+ workflow_dispatch :
7+ inputs :
8+ force_deploy :
9+ description : " Force deploy backend + frontend"
10+ type : boolean
11+ default : false
612
713concurrency :
814 group : deploy-main
4046 name : Build and Push Backend Image
4147 uses : ./.github/workflows/build-backend-image.yml
4248 needs : changes
43- if : ${{ needs.changes.outputs.backend == 'true' || needs.changes.outputs.backendLibrary == 'true' || needs.changes.outputs.backendData == 'true' }}
49+ if : ${{ inputs.force_deploy == true || needs.changes.outputs.backend == 'true' || needs.changes.outputs.backendLibrary == 'true' || needs.changes.outputs.backendData == 'true' }}
4450 permissions :
4551 contents : read
4652 packages : write
4955 name : Build and Push Frontend Image
5056 uses : ./.github/workflows/build-frontend-image.yml
5157 needs : changes
52- if : ${{ needs.changes.outputs.frontend == 'true' }}
58+ if : ${{ inputs.force_deploy == true || needs.changes.outputs.frontend == 'true' }}
5359 permissions :
5460 contents : read
5561 packages : write
You can’t perform that action at this time.
0 commit comments