-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix/cicd workflow 수정 #180
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! 궁금한 부분 질문남겼습니다~
.github/workflows/cd-dev.yml
Outdated
workflow_run: | ||
workflows: [ "Makers_Crew CI" ] | ||
branches: [ "develop" ] | ||
types: [ completed ] | ||
workflows: ["Makers_Crew CI"] | ||
branches: [develop] | ||
types: [completed] | ||
|
||
push: | ||
branches: [ "develop" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 on
이하의 동작을 아래와 같이 이해했는데 맞을까요??
workflow_run
: "Makers_Crew CI
" 작업이 develop 브랜치에 완료되면Makers_Crew Dev CD
작업이 트리거 된다.push
: develop 브랜치에push
되면Makers_Crew Dev CD
작업이 트리거 된다.
만약 맞다면 트리거가 2개인거 같은데 어떻게 생각하시나요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ci는 pr이 오픈 됐을 때, pr에 커밋을 푸쉬 했을 때, pr이 재오픈 됐을 때 수행됩니다. 그리고 cd는 dev 브랜치에서 ci가 성공 했을 때, dev 브랜치에 push 이벤트가 발생 했을 때 수행되기 때문에 dev 브랜치에 merge가 됐을 때(push 이벤트 발생) cd가 한번 수행되게 됩니다.
Pr에서 매 커밋마다 ci를 수행하기 때문에 dev 브랜치에 merge 될 때 문제 없는 상태가 보장 되겠지만 제가 의도한건 ci가 수행되고 이가 성공 했을 때 cd가 수행되는 것이기 때문에 의도와는 살짝 다르긴 하네요!
모든 branch에 push 이벤트가 발생할 때 ci를 수행하고, dev 브랜치에 ci가 완료될 때 cd를 수행하도록 개선할 수 있을 것 같습니다. 좋은 지적 감사해요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 그렇군요!
넵 고생하셨습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👩💻 Contents
📝 Review Note
📣 Related Issue
✅ 점검사항