Skip to content

Commit 5084073

Browse files
committed
CCM-12921: add proxy to destroy dynamic
1 parent d05a624 commit 5084073

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/pr_destroy_dynamic_env.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
cancel-in-progress: false
1010

1111
jobs:
12-
create-dynamic-environment:
12+
destroy-dynamic-environment:
1313
name: Destroy Dynamic Environment
1414
runs-on: ubuntu-latest
1515

@@ -32,3 +32,25 @@ jobs:
3232
--terraformAction "destroy" \
3333
--overrideProjectName "nhs" \
3434
--overrideRoleName "nhs-main-acct-supplier-api-github-deploy"
35+
36+
destroy-dynamic-proxy:
37+
name: Destroy Dynamic Proxy
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v5
42+
43+
- name: Trigger dynamic proxy destruction
44+
env:
45+
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
46+
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
47+
shell: bash
48+
run: |
49+
.github/scripts/dispatch_internal_repo_workflow.sh \
50+
--infraRepoName "nhs-notify-supplier-api" \
51+
--releaseVersion "main" \
52+
--targetComponent "api" \
53+
--targetWorkflow "proxy-destroy.yaml" \
54+
--targetEnvironment "pr${{ github.event.number }}" \
55+
--apimEnvironment "internal-dev-sandbox" \
56+
--boundedContext "notify-supplier"

0 commit comments

Comments
 (0)