From 56077a22b73afe0adaf2ad71151e60d240b96ea2 Mon Sep 17 00:00:00 2001 From: kacper Date: Wed, 15 Apr 2026 06:30:38 -0400 Subject: [PATCH] Retry deployment health check --- .forgejo/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 4a4c4d9..038a60e 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -119,5 +119,12 @@ jobs: cd /opt/robot-u-site ./scripts/check_deploy_config.py docker compose up --build -d - curl -fsS http://127.0.0.1:8800/health + for attempt in $(seq 1 30); do + if curl -fsS http://127.0.0.1:8800/health; then + exit 0 + fi + sleep 2 + done + docker compose logs --tail=100 robot-u-site + exit 1 '