mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
wait
This commit is contained in:
parent
d31da32327
commit
88383898ba
11
.github/workflows/cache-verify.yml
vendored
11
.github/workflows/cache-verify.yml
vendored
@ -245,16 +245,17 @@ jobs:
|
||||
local max=20
|
||||
echo "⏳ Waiting for $name ($url)..."
|
||||
for i in $(seq 1 "$max"); do
|
||||
if curl -sf "$url"; then
|
||||
echo "✅ $name is ready"
|
||||
status=$(curl -s -o /dev/null -w "%{http_code}" "$url")
|
||||
if [ "$status" -lt 500 ]; then
|
||||
echo "✅ $name responded with HTTP $status"
|
||||
return 0
|
||||
fi
|
||||
echo "Waiting for $name... ($i/$max)"
|
||||
echo "Waiting for $name... ($i/$max), last HTTP $status"
|
||||
sleep 2
|
||||
done
|
||||
echo "❌ Timeout: $name did not respond at $url – continuing anyway"
|
||||
echo "❌ Timeout: $name did not respond successfully at $url"
|
||||
docker compose logs || echo "(docker logs failed)"
|
||||
return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
# Lade die kopierten .env-Dateien in Shell-Variablen
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user