Skip to content

dev 배포 스크립트 충돌 해결 - #219

Merged
ShinjungOh merged 1 commit into
develop/v3.5.0from
feature/#218
Apr 13, 2026
Merged

dev 배포 스크립트 충돌 해결#219
ShinjungOh merged 1 commit into
develop/v3.5.0from
feature/#218

Conversation

@ShinjungOh

Copy link
Copy Markdown
Member

issue

구현 사항

오류 발생 상황

developdevelop/v버전명으로 브랜치 전략을 변경한 이후, dev 배포 스크립트를 실행하면 Deploy on EC2 단계에서 오류가 발생해 실패하는 문제가 있었어요(개발 서버가 터진 이유).
이전 PR에서 배포 스크립트를 수정해서 해결될 줄 알았는데(참고 코멘트) 여전히 문제가 발생했어요🥲

EC2에 이전 origin/develop ref가 남아있어 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으로 하드코딩하고 있어서 해당 이슈와 관련 없으며 잘 동작합니다.
배포 스크립트는 배포를 해봐야 제대로 동작하는지 잘못됐는지 확인할 수 있어서 불편하네요...
이 스크립트를 적용해보고 안되면 또 수정하겠습니다🥹

@ShinjungOh ShinjungOh self-assigned this Apr 4, 2026
@ShinjungOh ShinjungOh added 🚨 bug bug 🛠️ Setting project setting labels Apr 4, 2026
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@jinhokim98 jinhokim98 moved this to In Review in crew-wiki-7-FE Apr 4, 2026

@jinhokim98 jinhokim98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헉 검토가 너무 늦었네요. 죄송합니다ㅠ
이번 주 별별 이슈가 너무 많았어서..
프룬이 들어갔군요 좋습니다ㅋㅋ

@chosim-dvlpr chosim-dvlpr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗 이런 현상이 생길 수 있겠군요!! 작업해주셔서 감사합니다 👍
배포는 act와 Docker로 로컬에서 테스트해볼 수 있어요! (다만 로컬 세팅이 조금 번거롭다는 단점이 있어요ㅠㅠ)

@ShinjungOh
ShinjungOh merged commit c5ae3be into develop/v3.5.0 Apr 13, 2026
2 checks passed
@ShinjungOh
ShinjungOh deleted the feature/#218 branch April 13, 2026 02:41
@github-project-automation github-project-automation Bot moved this from In Review to Done in crew-wiki-7-FE Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚨 bug bug 🛠️ Setting project setting

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants