Skip to content

Commit 7644593

Browse files
committed
Added continuous deployment pipeline
1 parent 8f50703 commit 7644593

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
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 }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

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)