Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/pr_destroy_dynamic_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
id-token: write
contents: read

jobs:
create-dynamic-environment:
destroy-dynamic-environment:
name: Destroy Dynamic Environment
runs-on: ubuntu-latest

Expand All @@ -32,3 +36,25 @@ jobs:
--terraformAction "destroy" \
--overrideProjectName "nhs" \
--overrideRoleName "nhs-main-acct-supplier-api-github-deploy"

destroy-dynamic-proxy:
name: Destroy Dynamic Proxy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Trigger dynamic proxy destruction
env:
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
shell: bash
run: |
.github/scripts/dispatch_internal_repo_workflow.sh \
--infraRepoName "nhs-notify-supplier-api" \
--releaseVersion "main" \
--targetComponent "api" \
--targetWorkflow "proxy-destroy.yaml" \
--targetEnvironment "pr${{ github.event.number }}" \
--apimEnvironment "internal-dev-sandbox" \
--boundedContext "notify-supplier"
Loading