Skip to content
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

Merged
merged 27 commits into from
Nov 21, 2023
Merged

Feature: 배포 세팅 #5

merged 27 commits into from
Nov 21, 2023

Conversation

wjdtkdgns
Copy link
Member

@wjdtkdgns wjdtkdgns commented Nov 20, 2023

개요

작업사항

  • aws 세팅했습니다.
    -> cloudwatch에 서버 로그 전달되도록 연결해뒀습니다!
  • action workflow 작성했습니다.

변경로직

ci workflow에 gradle cache 부분에서 계속 에러나서 일단 주석처리 해뒀습니다.
해결 방법 알아내면 고쳐서 다시 올려둘게요 -> 해결했어요 ㅎㅋ

@wjdtkdgns wjdtkdgns self-assigned this Nov 20, 2023
Copy link
Member

@DongGeon0908 DongGeon0908 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +33 to +35
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}
Copy link
Member

Choose a reason for hiding this comment

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

application-prod.yml에 해당 셋업 진행해야 될 것 같아요!!

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ARG PROFILE=dev
ARG PROFILE=prod

Comment on lines 3 to 11
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 }}
Copy link
Member

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 환경을 별도로 분리해서 배포하는 방식으로 진행해야 될 것 같아요.

Copy link
Member

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 배포

Copy link
Member

@DongGeon0908 DongGeon0908 left a comment

Choose a reason for hiding this comment

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

yml 파일 설정은 나중에 제가 좀 수정 진행할게요~

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@wjdtkdgns wjdtkdgns merged commit 58ef035 into develop Nov 21, 2023
3 checks passed
@wjdtkdgns wjdtkdgns deleted the feature/issue-3/deploy branch December 16, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🤖 [FEATURE] deploy 세팅
2 participants