Skip to content

Commit c2c4a42

Browse files
CCM-16553: Deployment into nft environment in NonProd (#293)
* CCM-16553: Deployment into nft environment in NonProd * CCM-16553: Utility tool * CCM-16553: Code review comments * CCM-16553: Use tsx and rename tests * CCM-16553: Address review comments * reset package-lock from main * updated after running npm update scripts * Updated doc and node:fs on csv files * remove path of jest
1 parent 3210487 commit c2c4a42

21 files changed

Lines changed: 1260 additions & 12 deletions

.github/workflows/release_created.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ concurrency:
99
cancel-in-progress: false
1010

1111
jobs:
12-
deploy-main:
13-
name: Deploy changes to main in nonprod AWS Account
12+
deploy-to-non-prod-environments:
13+
name: Deploy changes to main and nft in nonprod AWS Account
1414
runs-on: ubuntu-latest
1515

1616
permissions:
@@ -21,6 +21,7 @@ jobs:
2121
max-parallel: 1
2222
matrix:
2323
component: [dl]
24+
target_environment: [main, nft]
2425

2526
steps:
2627
- name: Checkout repository
@@ -33,19 +34,19 @@ jobs:
3334
bash .github/scripts/dispatch_internal_repo_workflow.sh \
3435
--releaseVersion "${{ github.event.release.tag_name }}" \
3536
--targetWorkflow "dispatch-deploy-static-notify-digital-letters-env.yaml" \
36-
--targetEnvironment "main" \
37+
--targetEnvironment "${{ matrix.target_environment }}" \
3738
--targetAccountGroup "nhs-notify-digital-letters-nonprod" \
3839
--targetComponent "${{ matrix.component }}" \
3940
--terraformAction "apply"
4041
4142
acceptance-stage:
4243
name: "Acceptance stage"
43-
needs: [deploy-main]
44+
needs: [deploy-to-non-prod-environments]
4445
uses: ./.github/workflows/stage-4-acceptance.yaml
4546
secrets:
4647
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
4748
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
4849
with:
49-
target_environment: "main"
50+
target_environment: "${{ matrix.target_environment }}"
5051
target_account_group: nhs-notify-digital-letters-nonprod
5152
target_release_version: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)