[Chore] Docker 배포 환경 및 CI/CD 워크플로우 구축 (#15, #16)#20
Merged
Conversation
- Spring Boot 애플리케이션 컨테이너화를 위한 Dockerfile 추가 - 로컬 개발 환경에서 API, PostgreSQL, Redis를 함께 실행할 수 있도록 docker-compose.yml 추가 - 운영 서버에서 GHCR 이미지를 실행할 수 있도록 docker-compose.prod.yml 추가 - 로컬 및 운영 환경변수 예시 파일(.env.example, .env.production.example) 추가 - GitHub Actions CI 워크플로우 추가 - main, develop 브랜치 push 및 PR 시 Gradle 테스트 실행 - 테스트 성공 후 Docker 이미지 빌드 검증 - GitHub Actions CD 워크플로우 추가 - main 브랜치 push 또는 수동 실행 시 GHCR 이미지 빌드 및 푸시 - 배포 서버 secret이 설정된 경우 SSH 접속 후 Docker Compose로 API 재배포 - prod 프로필의 datasource, mail, OAuth2, JWT, actuator health 설정 정리 - 배포 및 상태 확인을 위한 spring-boot-starter-actuator 의존성 추가 - CI 환경에서 contextLoads 테스트가 안정적으로 실행되도록 test 프로필 및 H2 설정 추가 - Docker/CI 관련 사용 방법과 필요한 GitHub Actions secrets를 README에 문서화
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 어떤 이유로 PR를 하셨나요?
📋 세부 내용 - 왜 해당 PR이 필요한지 작업 내용을 자세하게 설명해주세요
📸 작업 화면 스크린샷
🚨 관련 이슈 번호 [#15 #16 ]