CI CD
-
[CI/CD] SpringBoot 프로젝트를 AWS LightSail에 Docker, Github Actions를 활용하여 배포 및 Tibero6와 연결하기CI CD 2023. 11. 16. 22:54
📖 CI/CD란? CI는 Continuous Integration의 약자로 지속적 통합을 의미하며, CD는 Continuous Delivery로 지속적 배포를 의미한다. 이는 애플리케이션 개발 단계를 자동화하여, 계속 똑같은 작업을 반복하는 수고로움을 덜어주는 기능이다. 📖 CI 구축하기 📒 Github Action 설정 CI는 브랜치에 머지하기 전, 테스트를 통해서 오류가 있는지 확인하는 작업이라 생각하면 될 것 같다. 자바 기반의 스프링부트를 사용했기 때문에 아래 사진처럼 GitHub Actions를 만들 때 Java with Gradle을 사용하였다. 그러면 아래 사진과 같은 Edit 창이 뜨게 된다. 해당 .yml 파일에 원하는 과정을 작성하여 저장하면 CI 설정을 할 수 있다. 아래 코드는 CI..
-
[CI/CD] React 프로젝트를 AWS LightSail에 Docker, Github Actions와 Runners를 활용하여 배포해보기CI CD 2023. 11. 12. 17:01
이번 교내 캠퍼스 아카데미에서 프로젝트를 수행하게 되면서 백엔드와 인프라 구축을 맡게 되었다. 백엔드 프레임워크 2개를 쓰게 되어 총 인스턴스를 3개 정도 띄울 거 같은데 그중 첫 번째인 프론트엔드에 해당하는 인스턴스를 생성하고, CI CD를 적용하여 배포를 진행해 보고자 한다. 블로그와 문서들을 참고하여 기록해 둔 것이니 설명이나 내용이 부족한 부분이 있을 수 있음을 고려하고 보면 좋을 것 같다 (여담으로 Tmax 측에서 AWS와 계약을 하여, 인스턴스 비용을 지원해 주기로 해서 부담이 줄어들었다!) 📖 AWS LightSail 인스턴스 생성 create instance 버튼을 클릭하여 인스턴스 생성을 진행한다. 나의 경우 Ubuntu 20.04 LTS 버전으로 OS 환경을 선택했다. 이후, 로컬 cm..