-
Notifications
You must be signed in to change notification settings - Fork 8
[6주차] 신은지 / [Chore] CICD 구축 #94
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
Open
belovelace
wants to merge
29
commits into
Leets-Official:신은지/main
Choose a base branch
from
belovelace:신은지/main
base: 신은지/main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
The head ref may contain hidden characters: "\uC2E0\uC740\uC9C0/main"
Conversation
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.
1. 무슨 이유로 코드를 변경했나요?
application.properties자동 생성SPRING_DATASOURCE_URL등)를 Secrets에서 주입Docker Compose 서비스명·포트 매핑 조정
app→spring컨테이너명 변경8080:8080,3306:3306포트 바인딩 명시 → 로컬·CI 환경 동일화비밀 정보 관리 강화
.env/ GitHub Actions Secrets에 MySQL 계정·패스워드 저장application.properties에는 직접 노출되지 않도록 변경워크플로우 브랜치 트리거 수정
신은지/main으로 고정테스트 리포트 업로드 액션 버전 업데이트
actions/upload-test-report@v1→ 지원 버전으로 교체Dockerfile·빌드 컨텍스트 경로 지정
docker/build-push-action에file: ./Dockerfile옵션 추가AWS ECS 배포 단계 추가
2. 어떤 위험이나 장애를 발견했나요?
환경 변수 누락 → 빌드·테스트 실패
DB 접속 정보 없이는 애플리케이션 기동 불가 → CI 단계 전면 중단
잘못된 액션 버전 참조
Deprecated 또는 존재하지 않는 액션일 경우 워크플로우가 실행되지 않음
Docker Hub 인증 오류
DOCKER_USERNAME/DOCKER_PASSWORD미설정 시 이미지 푸시 실패ECS IAM 권한 부족
AWS 접근 권한 불충분 → 배포(Stage) 단계에서 리소스 업데이트 불가
YAML 구문·들여쓰기 오류
워크플로우 파일(.yml) 문법 오류 시 “unrecognized workflow file” 에러 발생
브랜치 네이밍 불일치
로컬 브랜치와 워크플로우 트리거 브랜치가 다르면 CD가 아예 수행되지 않음
서비스 무중단 배포 미설정
ECS 롤링 업데이트 미구성 → 배포 중 잠시 다운타임 발생
테스트 소요 시간 과다
단위 테스트 실행 시간이 길어지면 CI 타임아웃 및 배포 지연
3. 관련된 스크린샷
GitHub Actions 빌드·테스트 화면
AWS ECS 서비스 업데이트 결과
실제 포트 정보
http://56.228.35.71:<포트>/
Ref: Issue #78