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

[Infra / feat] develop branch CI/CD 구축 #27

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

ehyeok9
Copy link

@ehyeok9 ehyeok9 commented Apr 2, 2024

개요 🔍

main / develop branch에 push( + commit, PR) 트리거가 발생할 때, 자동적으로 AWS ec2에 어플리케이션 배포

연관된 이슈

#25

작업사항 📝

  • Github Secret 설정

DOCKER_USERNAME : DockerHub ID ( ex : [email protected] )
DOCKER_PASSWORD : DockerHub PW ( ex : password )
HOST_PROD : EC2 IPv4
( ex : 12.123.123.123 ( 탄력적 ip )
or
ec2-12-123-123-123.ap-northeast-2.compute.amazonaws.com
( 퍼블릭 ipv4 DNS ) )
PRIVATE_KEY : .pem 파일 복붙(--begin--, --end-- 까지 다 복붙해야함.)
HOST_DEV : EC2 IPv4
( ex : 12.123.123.123 )
USERNAME : EC2 사용자 계정 ID ( ex : ubuntu )
PASSWORD : EC2 사용자 계정 PW ( ex : 1234 )
YML : 프로젝트 .yml 파일에 설정한 내용

비밀번호 설정 참고 블로그

  • Github Action 스크립트 작성

스크린샷 (선택)

테스트 방법

  1. �Action 들어가서 수동으로 실행
  2. main / develop 브런치에 push

💬리뷰 요구사항(선택)

ehyeok9 added 2 commits April 2, 2024 19:52
1. 코드 변경이 감지되면 배포 스크립트를 실행
2. JDK 설정
3. gradle caching
4. application.yml 파일 생성
5. gradle build
6. docker build & push
7. deploy to EC2
@ehyeok9 ehyeok9 merged commit 2d44f69 into develop Apr 2, 2024
ehyeok9 added a commit that referenced this pull request Apr 4, 2024
[Infra / feat] �develop branch CI/CD 구축
@ehyeok9 ehyeok9 deleted the infra/ehyeok9/be/CI-CD-구축 branch May 10, 2024 06:19
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.

1 participant