From 1b6acbe22e363b8920e9b63691c748aaad77b7f3 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Wed, 27 Nov 2024 02:22:12 +0100 Subject: [PATCH] chore(ci): fix deploy ci failing when it should not --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 687d2c9..168fd67 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,4 +41,4 @@ jobs: supervisorctl restart serlo-app - name: Test deployment successful - run: sleep 5 && curl ${{ env.DOMAIN }} | grep NO_LTIK_OR_IDTOKEN_FOUND + run: for ((i=0; i<30; i++)); do curl --silent ${{ env.DOMAIN }} | grep -q "NO_LTIK_OR_IDTOKEN_FOUND" && exit 0; sleep 1; done; echo "Server not ready within 30 seconds." && exit 1