Check Studio health on an explicit API route
studio CI and deployment / verify-and-deploy (push) Successful in 7m56s
studio CI and deployment / verify-and-deploy (push) Successful in 7m56s
This commit is contained in:
@@ -18,7 +18,7 @@ rollback(){ if [ -n "$previous" ]; then write_compose "$previous"; docker compos
|
||||
trap rollback ERR
|
||||
docker compose -p prompt-studio -f /opt/prompt-studio/compose.yml up -d
|
||||
for attempt in {1..40}; do
|
||||
if curl -fsS http://127.0.0.1:18134/studio/api/index >/dev/null; then printf '%s' "prompt-studio:$sha" > /opt/prompt-studio/image; exit 0; fi
|
||||
if curl -fsS http://127.0.0.1:18134/studio/api/health >/dev/null; then printf '%s' "prompt-studio:$sha" > /opt/prompt-studio/image; exit 0; fi
|
||||
sleep 2
|
||||
done
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user