-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEAT] 새로운 AWS 계정에서 Prod 환경 CI/CD 구축 #418
Conversation
현재 상황
작업 방향
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.
LGTM~
@@ -3,15 +3,15 @@ | |||
GREEN_PORT=$1 | |||
|
|||
health_check_process() { | |||
# 헬스 체크를 최대 5번 시도 (3초 간격) | |||
# 헬스 체크를 최대 5번 시도 (5초 간격) |
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.
질문) 3초에서 5초로 바뀐 이유가 무엇인가요??
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.
EC2 환경이 너프되면서, 더 긴 시간이 필요하다고 느꼈습니다. 그래서 5초로 늘렸습니다.
근데, 10초로 하든, 5초로 하든 두 번째 헬스 체크에서 통과하더라구요;;
그래서 3초로 해도 크게 문제 없을 것 같긴 합니다. 타칸은 다른 의견 있으신가요?
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.
빠른 처리 굿굿 의견 남겼는데 확인부탁해요~!
needs: [ build ] | ||
uses: ./.github/workflows/blue-green.yml | ||
with: | ||
self_hosted_runner: prod-a | ||
self_hosted_runner: prod |
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.
사소한 의견) Linux랑 X64까지 표기해줬으면 좋겠어요~
환경까지 구분 명확히 해주면 좋을 것 같아서요~ 저는 dev, X64, Linux 로 해뒀어용
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/blue-green.yml
에 값을 넘겨 주어 사용하는 것이다 보니, 환경까지 넘겨주기에는 최적화 되어있지 않네요;;
@@ -3,15 +3,15 @@ | |||
GREEN_PORT=$1 |
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.
의견) scripts 패키지 dev, prod 패키지로 한 번 더 구분하면 어떨까요? dev도 여기서 관리하고 싶은데
헷갈릴까봐 지금은 dev ec2 안에서 script 관리하고 있어요!
Dev도 굳이 인프라 안들어가고 여기서 관리하고 싶음요
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.
넵 그래서 스크립트를 scripts/prod/
폴더로 옮겼습니다~
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.
넵 굿굿
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: jdbc:mysql://${secret.datasource.host}:${secret.datasource.port}/${secret.datasource.database}?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&autoReconnect=true&serverTimezone=Asia/Seoul&useLegacyDatetimeCode=false | ||
username: ${secret.datasource.username} | ||
password: ${secret.datasource.password} |
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.
내 소중한 작업이ㅠㅠㅠ
@@ -20,7 +14,7 @@ spring: | |||
jpa: | |||
database-platform: org.hibernate.dialect.MySQLDialect | |||
hibernate: | |||
ddl-auto: none | |||
ddl-auto: validate |
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.
👍🏻
Issue Number
#415
As-Is
To-Be
Check List
Test Screenshot
https://github.com/woowacourse-teams/2024-ddangkong/actions/runs/12048033899
정상적으로 Blue/Green 배포가 완료되는 것을 확인
(Optional) Additional Description