Skip to content

fix(deploy): CD 사전 검사가 의존 서비스 이미지 줄 때문에 실패하지 않게 한다 (#157) - #158

Open
exijn wants to merge 1 commit into
developfrom
fix/157-cd-precheck-image-match
Open

exijn wants to merge 1 commit into
developfrom
fix/157-cd-precheck-image-match

Conversation

@exijn

@exijn exijn commented Nov 11, 2026

Copy link
Copy Markdown
Member

Closes #157

변경

.github/workflows/cd.yml 사전 검사: [ "$image" != "poppy-server:$tag" ] → printf '%s\n' "$image" | grep -Fxq "poppy-server:$tag".

근거

  • 실패 로그(run 43018339211, chore(deploy): compose 가 AI 추론 서버 환경변수를 컨테이너에 전달 (#155) #156 머지 직후 run 포함): ERROR: production app image does not use the expected tag. Deploy manually.
  • 로컬 compose 2.40.3 에서 app 에 depends_on: postgres 가 있으면 config --images app 이 postgres:16-alpine 과 poppy-server:<tag> 두 줄을 출력한다(재현). 기존 비교는 이 경우 항상 실패한다.
  • 시뮬레이션: poppy-server:precheck-a 통과 / postgres+앱 두 줄 통과 / poppy-server-app 실패 / postgres+poppy-server:latest 실패.

주의

  • 운영 compose 가 아직 image: 를 태그로 고르지 않는 상태라면 이 PR 만으로는 통과하지 않는다(운영 서버 파일 수정은 사람이 한다).
  • 머지하면 CD 가 바로 돈다. 운영 compose 를 먼저 맞춘 뒤 머지하거나, 머지 직후 실패해도 안전하게 중단되는 구조다(사전 검사 단계).
  • production environment 에는 required reviewers 가 없어 승인 대기 없이 진행된다.

🤖 Generated with Claude Code

config --images app 이 depends_on 의 postgres 이미지도 출력하면 전체 비교가 항상 실패했다.
출력 중 poppy-server:<tag> 와 정확히 같은 줄이 있는지로 바꾼다.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@exijn exijn added bug 버그 수정 작업 ci CI/GitHub Actions 관련 작업 labels Nov 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 버그 수정 작업 ci CI/GitHub Actions 관련 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant