refactor: 오래된 이미지 삭제 후 이미지 pull하도록 변경#653
Conversation
Walkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/dev-cd.yml:
- Around line 148-150: The SSH command string in the "Run deployment on server"
step is missing its closing single quote, leaving the SSH heredoc/unquoted
string unclosed (you can spot the block that begins with a single quote and ends
near the echo "Deployment finished successfully."); fix by adding the missing
trailing single quote to close that SSH command string in the dev-cd.yml deploy
step (ensure the closing quote mirrors the opening quote used), then validate
the YAML by checking quotes are balanced for the deploy SSH block and that
indentation/pipe/quote usage remains correct so the workflow parses and the SSH
command runs.
- 추가로 이미지는 5개 -> 2개 보관하도록 변경
ed37b46 to
dc64b54
Compare
관련 이슈
작업 내용
기존에는 도커 이미지를 pull한 후, 오래된 이미지를 사용하기에 이후 deploy 시 오래된 이미지로 인해 디스크 용량이 부족해지는 경우 pull을 받지 못해 배포가 실패하는 상황이 있었습니다.
이에 deploy 전 오래된 이미지를 삭제하고 pull하도록 프로세스 순서를 변경하였습니다.
추가로 기존에는 이미지를 5개 유지하고 있었는데, 현재 실행하는 이미지 + 롤백용 이미지 총 2개만 유지해도 된다고 판단하여, 추가 수정했습니다.
특이 사항
리뷰 요구사항 (선택)