From f6eb2013ae933a4da01b13aa2d40b28c82f16172 Mon Sep 17 00:00:00 2001 From: Brannon Jones Date: Fri, 13 May 2022 13:55:19 -0600 Subject: [PATCH] Rename the App Service 'staging' slot to 'canary' (#27686) --- .github/workflows/azure-prod-build-deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/azure-prod-build-deploy.yml b/.github/workflows/azure-prod-build-deploy.yml index 6721af2443..2ee8931ccf 100644 --- a/.github/workflows/azure-prod-build-deploy.yml +++ b/.github/workflows/azure-prod-build-deploy.yml @@ -92,12 +92,12 @@ jobs: run: | sed 's|#{IMAGE}#|${{ env.DOCKER_IMAGE }}|g' docker-compose.prod.tmpl.yaml > docker-compose.prod.yaml - - name: 'Apply updated docker-compose.prod.yaml config to staging slot' + - name: 'Apply updated docker-compose.prod.yaml config to canary slot' run: | - az webapp config container set --multicontainer-config-type COMPOSE --multicontainer-config-file docker-compose.prod.yaml --slot staging -n ghdocs-prod -g docs-prod + az webapp config container set --multicontainer-config-type COMPOSE --multicontainer-config-file docker-compose.prod.yaml --slot canary -n ghdocs-prod -g docs-prod - # Watch staging slot instances to see when all the instances are ready - - name: Check that staging slot is ready + # Watch canary slot instances to see when all the instances are ready + - name: Check that canary slot is ready uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d env: CHECK_INTERVAL: 10000 @@ -117,7 +117,7 @@ jobs: let hasStopped = false const waitDuration = parseInt(process.env.CHECK_INTERVAL, 10) || 10000 async function doCheck() { - const states = getStatesForSlot('staging') + const states = getStatesForSlot('canary') console.log(`Instance states:`, states) // We must wait until at-least 1 instance has STOPPED to know we're looking at the "next" deployment and not the "previous" one @@ -138,10 +138,10 @@ jobs: doCheck() - # TODO - make a request to verify the staging app version aligns with *this* github action workflow commit sha - - name: 'Swap staging slot to production' + # TODO - make a request to verify the canary app version aligns with *this* github action workflow commit sha + - name: 'Swap canary slot to production' run: | - az webapp deployment slot swap --slot staging --target-slot production -n ghdocs-prod -g docs-prod + az webapp deployment slot swap --slot canary --target-slot production -n ghdocs-prod -g docs-prod - name: Purge Fastly edge cache env: