ci: output version info as JSON format and update e2e parser
TaxBaik CI/CD / build-and-deploy (push) Successful in 58s

This commit is contained in:
2026-06-28 01:03:52 +09:00
parent 8760a0a931
commit 58ec984f41
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ jobs:
echo "Expected short version: $SHORT_VERSION"
for i in $(seq 1 30); do
# Suppress stderr and allow failures to handle transition/down periods cleanly
VERSION_BODY="$(curl -fsS "http://${DEPLOY_HOST}/taxbaik/version.txt" 2>/dev/null || true)"
VERSION_BODY="$(curl -fsS "http://${DEPLOY_HOST}/taxbaik/version.json" 2>/dev/null || true)"
BLOG_STATUS="$(curl -s -o /dev/null -w '%{http_code}' "http://${DEPLOY_HOST}/taxbaik/blog/accountant-mistakes-5" || true)"
if echo "$VERSION_BODY" | grep -q "Version: ${SHORT_VERSION}" && [ "$BLOG_STATUS" = "200" ]; then
if echo "$VERSION_BODY" | grep -q "\"version\": \"${SHORT_VERSION}\"" && [ "$BLOG_STATUS" = "200" ]; then
echo "Deployment is ready for ${SHORT_VERSION}"
exit 0
fi