Chore/#5 Dockerfile 및 CI/CD 파이프라인 구성#11
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
#️⃣ 연관된 이슈
📝 작업 내용
수동 배포는 반복적이고 시간이 많이 소요되는 작업이므로 생산성을 위해 자동화 할 필요가 있다. 이를 위해 CI를 수행하는
test-pipeline.yml과 CD를 수행하는ec2-pipeline.yml를 제작했다.test-pipeline.yml
트리거를 통해 dev 브랜치로의 Push 나 PR이 발생할 시 동작
actions/setup-java@v4로 JAVA 17, Temurin 배포판을 설정
Git secrets에서 환경 변수를 가져와 application-secret의 파일을 만들어 ./src/main/resoucres 경로에 저장
Graddle Wrapper 권한을 부여
테스트를 시작
ec2-pipeline.yml
test-pipeline의 내용과 동일한 부분은 생략
트리거를 통해 main 브랜치로의 Push 나 PR이 발생할 시 동작
env 환경변수 설정. 민감정보는 secrets에 저장하며 자주 사용 될 정보만 env에 저장
newtork = Matzipbook-newtork,profile = release로 새 이미지로 컨테이너 실행applicaion.yml 컨벤션
배포 자동화와 원만한 협업을 위해 Applicaion.yml 컨벤션을 다음과 같이 한다
applicaion.yml
상황에 따라 적용할 프로파일을 선택
applicaion-secret.yml
코드 복사하여
GITHUB > Settings > Actions secrets and variables > Actions에서 적용applicaion-release.yml
EC2 배포 시 필요한 정보 관리