Skip to content

Commit f31c0f4

Browse files
committed
Added continuous deployment pipeline
1 parent 716284b commit f31c0f4

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 }}

azure/templates/sandbox-post-deploy.yml

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

0 commit comments

Comments
 (0)