From 43540b316dd2f58169a4ec8d04df38b7376a4e99 Mon Sep 17 00:00:00 2001 From: "E. Lynette Rayle" Date: Wed, 30 Oct 2024 23:01:43 -0400 Subject: [PATCH] need pause between deploy and validation It takes time for the deploy to complete and the health endpoint to reflect the new version. --- .github/workflows/app-build-and-deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/app-build-and-deploy.yml b/.github/workflows/app-build-and-deploy.yml index a3339ff..f69869f 100644 --- a/.github/workflows/app-build-and-deploy.yml +++ b/.github/workflows/app-build-and-deploy.yml @@ -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