Retry deployment health check
This commit is contained in:
parent
9049d367ea
commit
56077a22b7
1 changed files with 8 additions and 1 deletions
|
|
@ -119,5 +119,12 @@ jobs:
|
|||
cd /opt/robot-u-site
|
||||
./scripts/check_deploy_config.py
|
||||
docker compose up --build -d
|
||||
curl -fsS http://127.0.0.1:8800/health
|
||||
for attempt in $(seq 1 30); do
|
||||
if curl -fsS http://127.0.0.1:8800/health; then
|
||||
exit 0
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
docker compose logs --tail=100 robot-u-site
|
||||
exit 1
|
||||
'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue