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

CI / CD 배포 자동화 파이프라인 구축 #9

Closed
dlehdwo opened this issue Nov 2, 2024 · 0 comments · Fixed by #10
Closed

CI / CD 배포 자동화 파이프라인 구축 #9

dlehdwo opened this issue Nov 2, 2024 · 0 comments · Fixed by #10
Assignees
Labels
📦 Environment 개발 환경 세팅

Comments

@dlehdwo
Copy link
Contributor

dlehdwo commented Nov 2, 2024

📝 작업 내용

CI / CD 배포 자동화 파이프라인을 구축하였음

1. AWS EC2에 instance 생성 및 환경 구축
2. AWS RDS에 mysql instance 생성 및 환경 구축

  • AWS를 처음 써봐서 사용에 어려움이 있었지만 인터넷 자료가 많이 있어 할 수 있었음
  • EC2 instance에 java와 mysql community 설치 후 RDS와 연결

2. GitHub Secrets에 클라우드 정보 등록
image

3. GitHub Actions 워크플로우 파일(deploy.yml) 생성

  • 트리거
    main 브랜치에 push 할 때
    main 브랜치에 PR이 머지될 때
    image

  • 레포지토리 체크아웃
    image

  • JDK 설치
    image

  • Gradle 빌드
    image

  • EC2 SSH 연결 후 배포
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Environment 개발 환경 세팅
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant