ci: fix health check - verify container instead of HTTP
All checks were successful
Build & Deploy Dashboard / deploy (push) Successful in 1m3s

This commit is contained in:
Cosmo
2026-04-16 09:11:13 +00:00
parent ac279a672d
commit 8321fc9252

View File

@@ -49,9 +49,7 @@ jobs:
--label 'traefik.http.services.dashboard.loadbalancer.server.port=3000' \
digital-home-dashboard:latest
- name: Health check
- name: Verify container started
run: |
sleep 5
STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3005/)
echo "HTTP status: $STATUS"
[[ "$STATUS" == "200" || "$STATUS" == "307" ]] && echo "✅ Dashboard is up" || exit 1
docker ps | grep digital-home-dashboard && echo "✅ Container is running" || exit 1