fix: validate host certificates through Docker in CI
Rebuild & Deploy / rebuild (push) Failing after 1m9s

This commit is contained in:
snowspeeder committed 2026-10-01 16:19:58 -04:00
1 parent 129159ffd1
commit 3122ca7605
1 file changed
+8 -1
+8 -1
View File
@@ -7,7 +7,14 @@ test -f "$ENV_FILE"
test -d "$ROOT/accounts"
test -d "$ROOT/hermes"
test -f "$ROOT/livekit.yaml"
test -d /mnt/user/dev/hope-voice-api/certs
# CI runs inside a Docker-socket runner: host bind sources need not be visible
# in its filesystem. --mount fails for a missing host source (unlike -v, which
# would silently create it). Validate read-only through the host Docker daemon.
if [ ! -d /mnt/user/dev/hope-voice-api/certs ]; then
docker run --rm --network none --entrypoint /usr/bin/test \
--mount type=bind,source=/mnt/user/dev/hope-voice-api/certs,target=/certs,readonly \
hope-voice-api-voice:latest -d /certs
fi
STAMP=$(date -u +%Y%m%dT%H%M%SZ)
BACKUP="$ROOT/rollback/$STAMP"
mkdir -p "$BACKUP"