ci: 이미지 빌드를 CI의 병렬 job으로 옮겨 배포를 앞당김 - #481
Conversation
main push 뒤 CI(약 7분) → Build Image(약 2분) → Deploy 순차라 릴리즈마다 배포가 늦었다. 빌드는 테스트 결과가 필요 없으므로 check와 나란히 돌리고, Deploy는 CI 전체 결론을 기다린다. - pr-check.yml(CI)에 image job 추가: PR은 arm64 빌드만, main push는 GHCR :<sha> 푸시. packages:write는 이 job에만 - build-image.yml 삭제, deploy.yml은 CI의 workflow_run(이 레포 main push, 결론 success = check·image 모두 성공)을 받는다 - 수동 Deploy(재배포·롤백)는 그 sha의 main push CI 성공을 gh api로 확인한 뒤에만 진행한다 - 이미지가 check와 나란히 올라가 테스트에 실패한 커밋에도 생기므로, 예전처럼 "이미지가 있으면 CI 통과"에 기댈 수 없다 - 실제 API로 확인: 성공한 main sha 2건 → 1, develop 전용·없는 sha → 0 - deploy-workflow spec을 새 구조로 갱신하고 수동 실행 게이트 반증을 추가(조건을 되돌리면 2건 실패 확인), README 2종 갱신
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
🧹 knip — dead-code 리포트전체 리포트
|
🩺 NestJS Doctor — 90/100 (Excellent)진단 470건 (error 12).
architecture / security 상위 항목
|
Coverage report
Test suite run success3683 tests passing in 354 suites. Report generated by 🧪jest coverage report action from f9b000d |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
main push 뒤 CI(약 7분) → Build Image(약 2분) → Deploy 순서로 돌던 것을, 이미지 빌드를 CI 안의 병렬 job으로 옮겨 배포를 약 2분 앞당깁니다.
pr-check.yml)에imagejob 추가check와 나란히 돕니다. PR은 arm64 빌드만 하고, main push는 GHCR:<sha>로 푸시합니다.packages: write는 이 job에만 줍니다(이전build-image.yml은 워크플로 전체에 줬습니다).build-image.yml삭제, Deploy는 CI 결론을 받음check·image모두 성공)일 때만 자동 배포합니다.gh api로 확인하고, 없으면 pull·migrate 전에 멈춥니다.deploy-workflow.spec을 새 구조로 고치고 수동 게이트 반증을 추가했습니다. README 2종도 갱신했습니다.플랜 대조
검증