From 8f0cb690c4b4842a2e0d834afb6e65c3063239b1 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 27 Jun 2026 21:04:57 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=EB=B0=B0=ED=8F=AC=20=EB=B2=84=EC=A0=84?= =?UTF-8?q?=20=ED=99=95=EC=9D=B8=20=ED=9B=84=20=EB=B8=8C=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=EC=A0=80=20e2e=20=EC=8B=A4=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/browser-e2e.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/browser-e2e.yml b/.gitea/workflows/browser-e2e.yml index 040fb88..91a5e35 100644 --- a/.gitea/workflows/browser-e2e.yml +++ b/.gitea/workflows/browser-e2e.yml @@ -39,13 +39,18 @@ jobs: DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} run: | set -e - for i in $(seq 1 30); do - if curl -fsS "http://${DEPLOY_HOST}/taxbaik/healthz" >/dev/null; then + EXPECTED_VERSION="$(git rev-parse --short HEAD)" + 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 fi + echo "Waiting for deployment ${EXPECTED_VERSION}; blog status=${BLOG_STATUS}; version=${VERSION_BODY}" sleep 10 done - echo "Deployment did not become healthy in time" >&2 + echo "Deployment did not publish expected version ${EXPECTED_VERSION} in time" >&2 exit 1 - name: Browser E2E verification