Merged
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.
📌 Summary
✨ Description
CI/CD 파이프라인 설정 및 배포 자동화:
이 GitHub Actions 워크플로우는 프로젝트의 코드 변경사항이
main브랜치에 푸시될 때마다 자동으로 AWS EC2 인스턴스에 배포되는 프로세스를 설정합니다. 주요 단계는 다음과 같습니다:actions/checkout@v4액션을 사용하여 GitHub 리포지토리에서 최신 코드를 체크아웃합니다.actions/setup-java@v3액션을 사용하여 JDK 21을 설정합니다. 이는 최신 버전의 Java를 사용해 빌드를 진행하기 위함입니다.gradlew build --stacktrace명령어를 실행하여 프로젝트를 빌드하고 필요한 의존성을 다운로드합니다..jar파일을app.jar로 패키징하여 AWS EC2 서버로 배포할 준비를 합니다.appleboy/scp-action@v0.1.4액션을 사용하여 EC2 인스턴스로 빌드된.jar파일을 전송합니다. 이때 EC2의 접속 정보는 GitHub Secrets에서 관리됩니다.app.jar파일을nohup명령어를 사용해 백그라운드에서 실행합니다.이 자동화된 배포 프로세스를 통해 배포 과정이 표준화되고, 개발자가 코드 변경 후 수동으로 서버에 배포하는 수고를 덜 수 있습니다. 또한, 각 단계에서 로그를 확인할 수 있어 배포 과정에서 발생하는 문제를 쉽게 추적할 수 있습니다.
🗒️ Review Point