File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
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 @@ -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