File tree Expand file tree Collapse file tree 2 files changed +23
-37
lines changed
Expand file tree Collapse file tree 2 files changed +23
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -87,10 +87,33 @@ jobs:
8787 # uses: ./.github/actions/build-libraries
8888 # with:
8989 # version: "${{ inputs.version }}"
90+ pr-create-dynamic-environment :
91+ name : Create Dynamic Environment
92+ runs-on : ubuntu-latest
93+ steps :
94+ - uses : actions/checkout@v5
95+ - name : Trigger dynamic environment creation
96+ env :
97+ APP_CLIENT_ID : ${{ secrets.APP_CLIENT_ID }}
98+ APP_PEM_FILE : ${{ secrets.APP_PEM_FILE }}
99+ PR_NUMBER : ${{ inputs.pr_number }}
90100
101+ shell : bash
102+ run : |
103+ .github/scripts/dispatch_internal_repo_workflow.sh \
104+ --infraRepoName "$(echo ${{ github.repository }} | cut -d'/' -f2)" \
105+ --releaseVersion ${{ github.head_ref || github.ref_name }} \
106+ --targetWorkflow "dispatch-deploy-dynamic-env.yaml" \
107+ --targetEnvironment "pr${PR_NUMBER}" \
108+ --targetComponent "api" \
109+ --targetAccountGroup "nhs-notify-supplier-api-dev" \
110+ --terraformAction "apply" \
111+ --overrideProjectName "nhs" \
112+ --overrideRoleName "nhs-main-acct-supplier-api-github-deploy"
91113 artefact-proxies :
92114 name : " Build proxies"
93115 runs-on : ubuntu-latest
116+ needs : [pr-create-dynamic-environment]
94117 timeout-minutes : 10
95118 env :
96119 PROXYGEN_API_NAME : nhs-notify-supplier
You can’t perform that action at this time.
0 commit comments