File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed
Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Deployment Pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ deploy_all :
10+ strategy :
11+ matrix :
12+ sub_environment_name : [internal-dev, ref, int]
13+ uses : ./.github/workflows/deploy-backend.yml
14+ with :
15+ apigee_environment : ${{ matrix.sub_environment_name }}
16+ create_mns_subscription : true
17+ environment : dev
18+ sub_environment : ${{ matrix.sub_environment_name }}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ build-proxy:
4242
4343# Files to loop over in release
4444# VED-811: remove everything except for proxy related files as we move to Github Actions for backend deployment
45- _dist_include ="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. specification sandbox scripts"
45+ _dist_include ="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. specification sandbox scripts e2e "
4646
4747
4848# Create /dist/ sub-directory and copy files into directory
Original file line number Diff line number Diff line change @@ -47,14 +47,9 @@ extends:
4747 depends_on :
4848 - internal_dev_sandbox
4949 - environment : ref
50- depends_on :
51- - internal_dev
52- - internal_dev_sandbox
5350 jinja_templates :
5451 DOMAIN_ENDPOINT : https://ref.imms.dev.vds.platform.nhs.uk
5552 - environment : int
56- depends_on :
57- - internal_dev
5853 jinja_templates :
5954 DOMAIN_ENDPOINT : https://int.imms.dev.vds.platform.nhs.uk
6055 - environment : prod
Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ steps:
3434
3535 counter=0
3636 while [[ $counter -lt 31 ]]; do
37- response=$(curl -H "apikey: $(status-endpoint-api-key)" -s "$endpoint ")
37+ response=$(curl -H "apikey: $(status-endpoint-api-key)" -s "$status_endpoint ")
3838 response_code=$(jq -r '.checks.healthcheck.responseCode' <<< "$response")
3939 response_body=$(jq -r '.checks.healthcheck.outcome' <<< "$response")
4040 status=$(jq -r '.status' <<< "$response")
4141 if [ "$response_code" -eq 200 ] && [ "$response_body" == "OK" ] && [ "$status" == "pass" ]; then
4242 echo "Status test successful"
4343 break
4444 else
45- echo "Waiting for $endpoint to return a 200 response with 'OK' body..."
45+ echo "Waiting for $status_endpoint to return a 200 response with 'OK' body..."
4646 ((counter=counter+1)) # Increment counter by 1
4747 echo "Attempt $counter"
4848 sleep 30
You can’t perform that action at this time.
0 commit comments