Skip to content

Commit 787face

Browse files
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
2 parents d161b85 + ec49b72 commit 787face

34 files changed

+480
-494
lines changed

.github/workflows/pr_create_dynamic_env.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/stage-3-build.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ dist
2727
/sandbox/*.log
2828
/sandbox-staging
2929
/specification/api/components/examples
30+
/scripts/JWT/*.pem

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ serve-swagger:
9494
npm run serve-swagger-docs
9595

9696
copy-examples:
97-
cp -r ./sandbox/data/examples/. ./specification/api/components/examples
97+
@scripts/build/copy-examples.sh
9898

9999
config:: _install-dependencies version # Configure development environment (main) @Configuration
100100
npm install

0 commit comments

Comments
 (0)