File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,6 +198,40 @@ jobs:
198198 branch_name : ${{ github.ref_name }}
199199 secrets : inherit
200200
201+ deploy-infra-prod :
202+ name : Deploy infra (prod)
203+ needs : [resolve, deploy-app-dev]
204+ if : |
205+ always() &&
206+ needs.resolve.outputs.deploy_prod == 'true' &&
207+ (needs.deploy-app-dev.result == 'success' || needs.deploy-app-dev.result == 'skipped')
208+ permissions :
209+ id-token : write
210+ uses : ./.github/workflows/stage-4-deploy.yaml
211+ with :
212+ environments : ' ["prod"]'
213+ commit_sha : ${{ github.sha }}
214+ branch_name : ${{ github.ref_name }}
215+ secrets : inherit
216+
217+ deploy-app-prod :
218+ name : Deploy app (prod)
219+ needs : [resolve, deploy-infra-prod]
220+ if : |
221+ always() &&
222+ needs.resolve.outputs.deploy_prod == 'true' &&
223+ needs.deploy-infra-prod.result == 'success'
224+ permissions :
225+ id-token : write
226+ uses : ./.github/workflows/stage-4-deploy-app.yaml
227+ with :
228+ environments : ' ["prod"]'
229+ release_tag : ${{ needs.resolve.outputs.release_tag }}
230+ commit_sha : ${{ github.sha }}
231+ branch_name : ${{ github.ref_name }}
232+ secrets : inherit
233+
234+
201235 # ---- review (manual only) -------------------------------------------------
202236
203237 deploy-infra-review :
You can’t perform that action at this time.
0 commit comments