@@ -35,8 +35,8 @@ jobs:
|
||||
api_status=$(docker inspect --format '{{.State.Health.Status}}' "$(docker compose ps -q api)")
|
||||
web_status=$(docker inspect --format '{{.State.Health.Status}}' "$(docker compose ps -q web)")
|
||||
if [ "$api_status" = healthy ] && [ "$web_status" = healthy ]; then
|
||||
curl --fail http://localhost:8000/api/v1/health/live
|
||||
curl --fail http://localhost:8080/healthz
|
||||
docker compose exec -T api python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/v1/health/live', timeout=2)"
|
||||
docker compose exec -T web python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/healthz', timeout=2)"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
Reference in New Issue
Block a user