Repository navigation
[Chore/#265] dev 배포를 Actions 화면에서 수동으로도 실행할 수 있게 하기 - #266
Merged
Merged
Conversation
|
Caution CodeRabbit couldn't post its review summary. Error details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
#247 머지 때 GitHub 쪽 머지 처리가 중간에 끊겨 push 이벤트가 남지 않았고,
Deploy (dev)가 실행되지 않았다. 그래서 dev에는 #243 빌드가 그대로 떠 있고 만족도조사 카드가 보이지 않는다.지금 워크플로는 main push로만 실행돼서, 이벤트가 유실되면 새 커밋을 main에 넣는 것 말고는 다시 배포할 방법이 없다(이전 실행을 Re-run하면 그 실행의 커밋으로 다시 빌드된다).
❓ 왜 해결해야 하나요?
이벤트 유실은 오늘처럼 GitHub이 불안정할 때 다시 생길 수 있다. 그때마다 배포를 다시 돌리려고 의미 없는 커밋을 만들 수는 없다.
⭐ 어떻게 해결했나요?
deploy-dev.yml의on에workflow_dispatch를 추가했다. Actions → Deploy (dev) → Run workflow로 선택한 브랜치의 최신 커밋을 dev에 배포할 수 있다.이 PR이 머지되면 main push로 배포가 실행되므로 #247도 같이 dev에 반영된다.
🧩 이 PR의 한계 & 트레이드오프
수동 실행 때 main이 아닌 브랜치를 고르면 그 브랜치가 dev에 배포된다. 막지 않았다.
⛓️ 기존 기능에 미치는 영향
main push 배포는 그대로다. 실행 경로가 하나 늘어날 뿐이다.
🔀 Edge Case & 실패 시나리오
push 배포와 수동 배포가 겹치면 기존
concurrency: deploy-dev설정에 따라 먼저 돌던 실행이 취소되고 나중 실행만 남는다.📋 검토한 대안과 선택 이유
dev이미지가 [Feat/#241] 홈 주간 학사 일정 카드와 학사 일정 상세 화면 추가 (목업) #243 빌드라 #247이 들어가지 않는다.💬 리뷰 포인트