ci: fix healthcheck (use wget), increase timeout to 180s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 3m13s

Made-with: Cursor
This commit is contained in:
2026-04-25 21:44:09 +02:00
parent 3944f699bd
commit 4e84b03575
2 changed files with 7 additions and 7 deletions

View File

@@ -37,8 +37,8 @@ jobs:
- name: Wait for app to be healthy
run: |
echo "Waiting up to 120s for memento-web..."
for i in $(seq 1 24); do
echo "Waiting up to 180s for memento-web..."
for i in $(seq 1 36); do
STATUS=$(ssh root@192.168.1.190 "docker inspect --format='{{.State.Health.Status}}' memento-web 2>/dev/null || echo unknown")
if [ "$STATUS" = "healthy" ]; then
echo "OK - healthy after $((i * 5))s"
@@ -48,7 +48,7 @@ jobs:
sleep 5
done
echo "Timeout! Derniers logs :"
ssh root@192.168.1.190 "docker logs memento-web --tail=30"
ssh root@192.168.1.190 "docker logs memento-web --tail=50"
exit 1
- name: Cleanup