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.
작업 내용
main.yml
CI/CD 구축 가이드
개요
Docker를 사용하여 애플리케이션을 컨테이너화하고, EC2 인스턴스에 자동으로 배포.
사전 준비사항
1. Docker Hub 설정
2. EC2 설정
sudo apt-get update sudo apt-get install docker.io sudo systemctl start docker sudo systemctl enable docker
3. GitHub Repository 설정
다음 Secrets를 GitHub 레포지토리의 Settings → Secrets and variables → Actions에 설정:
DOCKER_USERNAME
: Docker Hub 사용자명DOCKER_PASSWORD
: Docker Hub 비밀번호EC2_HOST
: EC2 인스턴스 IP 주소EC2_PRIVATE_KEY
: EC2 접속용 private keyAPPLICATION_YML
: 스프링 부트 application.yml 내용APPLICATION_AWS_YML
: AWS 관련 설정 파일 내용디렉토리 구조
주의사항
프론트 배포는 ec2 용량부족으로 실패했습니다..ㅜ
Closes #153