-
Notifications
You must be signed in to change notification settings - Fork 1
[LNK-30] 컨테이너 실패 시 삭제 로직 추가 #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "LNK-30-Leenk-\uCEE8\uD14C\uC774\uB108-\uC2E4\uD328-\uC2DC-\uC0AD\uC81C-\uB85C\uC9C1-\uCD94\uAC00"
Conversation
- 로그에 spring-${AFTER_COLOR} 컨테이너 이름 포함하도록 수정
Walkthrough
Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/dev.yml (1)
100-111: 배포 실패 시 스택 상태 검증 권장.현재 구현은 AFTER_COLOR 컨테이너 정리는 완벽하지만, 다음을 고려하면 더 견고할 것 같습니다:
- 롤백 후 BEFORE_COLOR 컨테이너가 정상 상태인지 확인
- 필요시 Caddy 설정이 이전 포트를 가리키고 있는지 확인
현재 구현도 충분히 안전하지만, 중요한 프로덕션 배포인 경우 추가 검증을 고려해볼 수 있습니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/dev.yml(1 hunks)
🔇 Additional comments (1)
.github/workflows/dev.yml (1)
103-109: 컨테이너 실패 시 정리 로직이 올바르게 구현됨.헬스 체크 실패 시 로그 출력 및 컨테이너 정리 순서가 적절합니다:
docker logs에|| true를 사용하여 로그가 없는 경우에도 스크립트 실패 방지docker-compose stop으로 먼저 컨테이너 중지docker-compose rm -f로 컨테이너 강제 삭제- 기존 컨테이너(BEFORE_COLOR)는 유지되므로 올바른 롤백 동작
soo0711
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니닷! 👍
Related issue 🛠
작업 내용 💻
스크린샷 📷
같이 얘기해보고 싶은 내용이 있다면 작성 📢
Summary by CodeRabbit