dev 배포 스크립트 충돌 해결 - #219
Merged
Merged
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
jinhokim98
approved these changes
Apr 9, 2026
jinhokim98
left a comment
Contributor
There was a problem hiding this comment.
헉 검토가 너무 늦었네요. 죄송합니다ㅠ
이번 주 별별 이슈가 너무 많았어서..
프룬이 들어갔군요 좋습니다ㅋㅋ
chosim-dvlpr
approved these changes
Apr 11, 2026
chosim-dvlpr
left a comment
Contributor
There was a problem hiding this comment.
앗 이런 현상이 생길 수 있겠군요!! 작업해주셔서 감사합니다 👍
배포는 act와 Docker로 로컬에서 테스트해볼 수 있어요! (다만 로컬 세팅이 조금 번거롭다는 단점이 있어요ㅠㅠ)
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.
issue
구현 사항
오류 발생 상황
develop→develop/v버전명으로 브랜치 전략을 변경한 이후, dev 배포 스크립트를 실행하면 Deploy on EC2 단계에서 오류가 발생해 실패하는 문제가 있었어요(개발 서버가 터진 이유).이전 PR에서 배포 스크립트를 수정해서 해결될 줄 알았는데(참고 코멘트) 여전히 문제가 발생했어요🥲
EC2에 이전
origin/developref가 남아있어origin/develop/v버전명을 fetch할 때 ref가 충돌하는 것이 원인이었습니다.(git은 파일시스템 기반으로 ref를 저장하기 때문에,
develop이라는 파일이 존재하면develop/v3.5.0이라는 하위 경로를 생성할 수 없어 에러 발생)해결
git fetch origin "$BRANCH_NAME"→git fetch --prune origin으로 변경했고fetch 시 리모트에서 삭제된 브랜치의 stale ref를 전체 정리하도록 했습니다.
중점적으로 리뷰받고 싶은 부분(선택)
어떤 부분을 중점으로 리뷰했으면 좋겠는지 작성해주세요.
논의하고 싶은 부분(선택)
논의하고 싶은 부분이 있다면 작성해주세요.
🫡 참고사항
prod 배포 스크립트는 브랜치명을 main으로 하드코딩하고 있어서 해당 이슈와 관련 없으며 잘 동작합니다.
배포 스크립트는 배포를 해봐야 제대로 동작하는지 잘못됐는지 확인할 수 있어서 불편하네요...
이 스크립트를 적용해보고 안되면 또 수정하겠습니다🥹