File tree Expand file tree Collapse file tree 3 files changed +23
-16
lines changed
Expand file tree Collapse file tree 3 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ jobs:
2222 strategy :
2323 max-parallel : 1
2424 matrix :
25- component : [dnsroot ]
25+ component : [acct, app ]
2626
27- uses : ./.github/workflows/trigger_internal_repo_build .yaml
27+ uses : ./.github/workflows/reusable/internal_repo_build .yaml
2828 secrets : inherit
2929 with :
3030 release_version : main
31+ target_workflow : " dispatch-deploy-static-notify-web-template-management-env.yaml"
3132 tf_environment : " main"
3233 tf_group : " nhs-notify-template-management-dev"
3334 tf_component : ${{ matrix.component }}
Original file line number Diff line number Diff line change @@ -11,20 +11,22 @@ concurrency:
1111jobs :
1212 deploy-main :
1313 name : Deploy changes to main in nonprod AWS Account
14- runs-on : ubuntu-latest
14+
15+ permissions :
16+ id-token : write
17+ contents : read
1518
1619 strategy :
1720 max-parallel : 1
1821 matrix :
19- component : [dnsroot ]
22+ component : [acct, app ]
2023
21- steps :
22- - name : Trigger nhs-notify-internal static environment workflow deployments
23- uses : ./.github/workflows/trigger_internal_repo_build.yaml
24- with :
25- secrets : inherit
26- release_version : ${{ github.event.release.tag_name }}
27- tf_environment : " main"
28- tf_group : " nhs-notify-template-management-nonprod"
29- tf_component : ${{ matrix.component }}
30- tf_action : " apply"
24+ uses : ./.github/workflows/reusable/internal_repo_build.yaml
25+ secrets : inherit
26+ with :
27+ release_version : ${{ github.event.release.tag_name }}
28+ target_workflow : " dispatch-deploy-static-notify-web-template-management-env.yaml"
29+ tf_environment : " main"
30+ tf_group : " nhs-notify-template-management-nonprod"
31+ tf_component : ${{ matrix.component }}
32+ tf_action : " apply"
Original file line number Diff line number Diff line change 1- name : Trigger Notify Internal Infrastructure Deployment
1+ name : Call Notify Internal Infrastructure Deployment
22# # Sub workflow which plans and deploys Notify components as part of the workflow.
33# # Review Gates may be required to proceed on triggered builds.
44
99 type : string
1010 description : The Github release version, commit, or tag.
1111 default : main
12+ target_workflow :
13+ type : string
14+ description : The name of the github workflow to call.
15+ default : main
1216 tf_environment :
1317 type : string
1418 description : The Terraform environment to deploy
7276 -H "Accept: application/vnd.github+json" \
7377 -H "Authorization: Bearer ${{ secrets.PR_TRIGGER_PAT }}" \
7478 -H "X-GitHub-Api-Version: 2022-11-28" \
75- https://api.github.com/repos/NHSDigital/nhs-notify-internal/actions/workflows/dispatch-deploy-static-env.yaml /dispatches \
79+ " https://api.github.com/repos/NHSDigital/nhs-notify-internal/actions/workflows/${{ inputs.target_workflow }} /dispatches" \
7680 -d "${DISPATCH_EVENT}"
7781
7882 echo "Workflow triggered successfully. HTTP response. Waiting for the workflow to complete.."
You can’t perform that action at this time.
0 commit comments