From 755a1157bee86762a3a874f69dfaafc95c739797 Mon Sep 17 00:00:00 2001 From: exijn Date: Thu, 12 Nov 2026 08:00:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20CD=20=EC=82=AC=EC=A0=84=20?= =?UTF-8?q?=EA=B2=80=EC=82=AC=EA=B0=80=20=EC=9D=98=EC=A1=B4=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=A4=84=20?= =?UTF-8?q?=EB=95=8C=EB=AC=B8=EC=97=90=20=EC=8B=A4=ED=8C=A8=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EA=B2=8C=20=ED=95=9C=EB=8B=A4=20(#157)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config --images app 이 depends_on 의 postgres 이미지도 출력하면 전체 비교가 항상 실패했다. 출력 중 poppy-server: 와 정확히 같은 줄이 있는지로 바꾼다. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9fee2fe..cb4696d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -89,7 +89,9 @@ jobs: image=$(sudo env POPPY_SERVER_IMAGE_TAG="$tag" docker compose -p poppy-server \ --project-directory "$COMPOSE_DIR" -f "$COMPOSE_FILE" --env-file "$ENV_FILE" \ config --images app 2>/dev/null) || { echo "ERROR: cannot resolve production app image. Aborting deployment."; exit 1; } - if [ "$image" != "poppy-server:$tag" ]; then + # app 의 depends_on(postgres) 때문에 compose 버전에 따라 config --images app 이 + # 의존 서비스 이미지(postgres:16-alpine)도 함께 출력한다 → 줄 단위로 정확히 일치하는 줄을 찾는다. + if ! printf '%s\n' "$image" | grep -Fxq "poppy-server:$tag"; then echo "ERROR: production app image does not use the expected tag. Deploy manually." exit 1 fi