ci: 배포 버전 확인 후 브라우저 e2e 실행
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m6s
TaxBaik Browser E2E / browser-e2e (push) Failing after 1m25s

This commit is contained in:
2026-06-27 21:04:57 +09:00
parent bfad47c2af
commit 8f0cb690c4
+8 -3
View File
@@ -39,13 +39,18 @@ jobs:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
run: | run: |
set -e set -e
for i in $(seq 1 30); do EXPECTED_VERSION="$(git rev-parse --short HEAD)"
if curl -fsS "http://${DEPLOY_HOST}/taxbaik/healthz" >/dev/null; then for i in $(seq 1 60); do
VERSION_BODY="$(curl -fsS "http://${DEPLOY_HOST}/taxbaik/version.txt" || 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: ${EXPECTED_VERSION}" && [ "$BLOG_STATUS" = "200" ]; then
echo "Deployment is ready for ${EXPECTED_VERSION}"
exit 0 exit 0
fi fi
echo "Waiting for deployment ${EXPECTED_VERSION}; blog status=${BLOG_STATUS}; version=${VERSION_BODY}"
sleep 10 sleep 10
done done
echo "Deployment did not become healthy in time" >&2 echo "Deployment did not publish expected version ${EXPECTED_VERSION} in time" >&2
exit 1 exit 1
- name: Browser E2E verification - name: Browser E2E verification