Closed dasd412 closed 2 years ago
무료 ci 툴 중 jenkins와 github actions에서 하나를 고르기로 했다. 일단, 더 맘에 드는 것은 후자다. 이유는 다음과 같다.
일단, 찾은 예제는 다음과 같다. 배포 구조 역시 s3와 code deploy를 활용해서 ec2에 배포하는 형식이다. (배포 다이어그램 참고)
https://velog.io/@tigger/Github-Action%EA%B3%BC-AWS-S3-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0
https://stalker5217.github.io/devops/github_action_ci_cd_2/
앞에거가 더 나은 듯.
maven 용 yml 파일 작성 참고 자료는 다음과 같다. (위 2개는 gradle용.) https://zzang9ha.tistory.com/339
현재 s3에 zip 업로드까지는 정상 작동하고 있다. github/workflows/uploadS3.yml 파일이 해당 작업을 수행하는 스크립트다.
code deploy 까지 연동 완료. 그리고 쉘 스크립트로 자동 jar 실행도 완료.
내용은 다음과 같다. Builds have been temporarily disabled for private and public repositories due to a negative credit balance. Please go to the [Plan page] to replenish your credit balance.