Files
likang 7ddc3c22c5
CI / typecheck + test + build (push) Has been cancelled
commit
2026-11-16 17:50:15 +08:00

13 lines
565 B
Bash

#!/bin/sh
# Fail deployment unless the real runtime/EDA bridge healthcheck passes.
set -eu
cd "$(dirname "$0")/.."
if ! docker compose -f codex_pcb/compose.yaml up -d --build --wait --wait-timeout 240; then
printf '%s\n' 'PCB deployment failed: runtime is not ready. Inspect the failed checks below.' >&2
docker compose -f codex_pcb/compose.yaml ps || true
docker compose -f codex_pcb/compose.yaml logs --tail=100 pcb-backend || true
exit 1
fi
printf '%s\n' 'PCB deployment ready: filesystem, native sandbox and read-only EasyEDA bridge verified.'