ci: centralize public admin smoke checks
TaxBaik CI/CD / build-and-deploy (push) Failing after 10m29s
TaxBaik CI/CD / build-and-deploy (push) Failing after 10m29s
This commit is contained in:
@@ -52,6 +52,13 @@ jobs:
|
||||
LOGIN_STATUS="$(curl -s -o /dev/null -w '%{http_code}' "http://${DEPLOY_HOST}/taxbaik/admin/login" || true)"
|
||||
if echo "$VERSION_BODY" | grep -q "\"version\": \"${SHORT_VERSION}\"" && [ "$BLOG_STATUS" = "200" ] && [ "$LOGIN_STATUS" = "200" ]; then
|
||||
echo "✓ Deployment ready for ${SHORT_VERSION} (attempt $i/20)"
|
||||
ROOT_URL="http://${DEPLOY_HOST}/" \
|
||||
ADMIN_URL="http://${DEPLOY_HOST}/taxbaik/admin/login" \
|
||||
PUBLIC_MARKER="백원숙 세무회계" \
|
||||
PUBLIC_FORBIDDEN="관리자" \
|
||||
ADMIN_MARKER="TaxBaik Admin" \
|
||||
MAX_RETRIES=1 \
|
||||
bash ./scripts/taxbaik-smoke.sh
|
||||
exit 0
|
||||
fi
|
||||
if [ $i -lt 20 ]; then
|
||||
|
||||
Reference in New Issue
Block a user