Skip to content

Commit 347b0dc

Browse files
committed
wip
1 parent c2e9a67 commit 347b0dc

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/cicd-2-main-branch.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)