-
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
Feature: 배포 세팅 #5
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.
LGTM
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_NAME:susu}?useUnicode=true&charset=utf8mb4&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull | ||
username: ${MYSQL_USERNAME:susu} | ||
password: ${MYSQL_PASSWORD:susu} |
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.
application-prod.yml에 해당 셋업 진행해야 될 것 같아요!!
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.
prod는 default값 빼고 세팅할게요!
디비 연결 안되면 에러 터트리는게 맞을 것 같다고 생각해서요
Dockerfile
Outdated
ARG JAR_FILE=./build/libs/*.jar | ||
COPY ${JAR_FILE} app.jar | ||
|
||
ARG PROFILE=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.
ARG PROFILE=dev | |
ARG PROFILE=prod |
.github/workflows/Deploy.yml
Outdated
on: | ||
push: | ||
branches: ['develop'] | ||
|
||
env: | ||
ACTIVE_PROFILE: "prod" | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_IMAGE_NAME: ${{ secrets.DOCKERHUB_IMAGE_NAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_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.
저희 staging, dev 환경 구축없이 prod 단일 운영으로 초기 논의를 했던 것 같은데요!
요기 branch 설정이 바뀌어야 될 것 같아요.
아니면, 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.
초기진행
- prod 단일 배포
추후(서비스가 커진다는 행복회로)
- prod, staging 배포
추후(미쵸따!)
- prod, staging, 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.
yml 파일 설정은 나중에 제가 좀 수정 진행할게요~
Kudos, SonarCloud Quality Gate passed! |
개요
작업사항
-> cloudwatch에 서버 로그 전달되도록 연결해뒀습니다!
변경로직
ci workflow에 gradle cache 부분에서 계속 에러나서 일단 주석처리 해뒀습니다.
해결 방법 알아내면 고쳐서 다시 올려둘게요 -> 해결했어요 ㅎㅋ