Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading