feat: Enhance CI workflows with health checks and update PostgreSQL image version
This commit is contained in:
@@ -49,3 +49,16 @@ jobs:
|
||||
-e DATABASE_NAME=${{ secrets.DATABASE_NAME }} \
|
||||
-e DATABASE_SCHEMA=${{ secrets.DATABASE_SCHEMA }} \
|
||||
"$IMAGE_PATH:$IMAGE_SHA"
|
||||
|
||||
for attempt in {1..10}; do
|
||||
if curl -fsS http://localhost:8000/health >/dev/null; then
|
||||
echo "Deployment health check passed"
|
||||
exit 0
|
||||
fi
|
||||
echo "Health check attempt ${attempt} failed; retrying in 3s"
|
||||
sleep 3
|
||||
done
|
||||
|
||||
echo "Deployment health check failed after retries" >&2
|
||||
docker logs calminer >&2 || true
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user