Skip to content

Commit

Permalink
need pause between deploy and validation
Browse files Browse the repository at this point in the history
It takes time for the deploy to complete and the health endpoint to reflect the new version.
  • Loading branch information
elrayle committed Nov 1, 2024
1 parent ef654ca commit e8cfaa2
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/app-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,24 @@ jobs:
azure-webapp-name: ${{ inputs.azure-app-base-name }}${{ inputs.azure-app-name-postfix }}
image-name-with-tag: ${{ needs.build-and-publish-image.outputs.docker-image-name-with-tag }}

pause-between-primary-deploy-and-verification:
needs: deploy-primary-app-to-azure
runs-on: ubuntu-latest
steps:
- name: Pause for 3 minutes
run: sleep 180 # Sleep for 180 seconds (3 minutes)

verify-primary-app:
name: Verify primary health endpoint
if: ${{inputs.primary-verification-url != '' }}
needs: [get-version, deploy-primary-app-to-azure]
needs: [get-version, pause-between-primary-deploy-and-verification]
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/[email protected]
with:
repository: 'clearlydefined/operations'
ref: 'elr/verify-health'
ref: 'v3.1.2'
path: 'operations'
- name: Validate primary deploy
id: validate-primary
Expand Down Expand Up @@ -183,17 +190,24 @@ jobs:
azure-webapp-name: ${{ inputs.azure-app-base-name }}${{ inputs.secondary-azure-app-name-postfix }}
image-name-with-tag: ${{ needs.build-and-publish-image.outputs.docker-image-name-with-tag }}

pause-between-secondary-deploy-and-verification:
needs: deploy-secondary-app-to-azure
runs-on: ubuntu-latest
steps:
- name: Pause for 3 minutes
run: sleep 180 # Sleep for 180 seconds (3 minutes)

verify-secondary-app:
name: Verify secondary health endpoint
if: ${{ inputs.secondary-azure-app-name-postfix != '' && inputs.secondary-verification-url != '' }}
needs: [get-version, deploy-secondary-app-to-azure]
needs: [get-version, pause-between-secondary-deploy-and-verification]
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/[email protected]
with:
repository: 'clearlydefined/operations'
ref: 'elr/verify-health'
ref: 'v3.1.2'
path: 'operations'
- name: Validate secondary deploy
id: validate-secondary
Expand Down

0 comments on commit e8cfaa2

Please sign in to comment.