Validate candidate pages before public ingress and deployment checks
Advertiser console CI and test deployment / build-deploy (push) Failing after 1m4s

This commit is contained in:
2026-09-16 15:21:08 +08:00
parent 389be02494
commit 8d319fb34e
3 changed files with 6 additions and 1 deletions
+3
View File
@@ -18,6 +18,9 @@ done
[[ "$ready" == true ]] || { echo 'Candidate failed health check'; exit 1; }
# Auth endpoint should exist and reject unauthenticated requests, rather than 404/502.
docker exec "$candidate" sh -c 'wget -S -O /dev/null http://127.0.0.1/v1/advertiser/me 2>&1 | grep "401 Unauthorized"'
# Validate functionality on the runner before changing the published service.
# This loopback origin is already permitted by the API's development CORS policy.
docker run --rm --network "container:$candidate" --shm-size=256m -e BASE_URL=http://localhost:5173 "adcloud-advertiser:$SOURCE_REVISION-tests"
old=false
if docker container inspect "$name" >/dev/null 2>&1; then
docker stop "$name"