From 6600a22475d90b42c69b76f73845ab7b01edaed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 15 May 2026 17:00:23 +0400 Subject: [PATCH] deploy: fix directus access --- .gitea/workflows/deploy-beta.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-beta.yaml b/.gitea/workflows/deploy-beta.yaml index 17076ed..686b1c2 100644 --- a/.gitea/workflows/deploy-beta.yaml +++ b/.gitea/workflows/deploy-beta.yaml @@ -73,6 +73,13 @@ jobs: docker compose restart directus echo "==> Vérification santé" - sleep 5 - curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"' - echo "Déploiement OK" + for i in $(seq 1 12); do + if curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'; then + echo "Déploiement OK" + exit 0 + fi + echo " Attente... ($i/12)" + sleep 5 + done + echo "Échec : Directus ne répond pas après 60s" + exit 1