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 Oct 31, 2024
1 parent 7a0d890 commit 43540b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/app-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,17 @@ 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-jobs:
needs: deploy-primary-app-to-azure
runs-on: ubuntu-latest
steps:
- name: Pause for 5 minutes
run: sleep 300 # Sleep for 300 seconds (5 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-jobs]
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
Expand Down

0 comments on commit 43540b3

Please sign in to comment.