dasd412 / RemakeDiabetesDiaryAPI

혈당일지 api 리메이크
https://www.diabetes-diary.tk/
1 stars 0 forks source link

travis ci 만료됨. 다른 ci 툴로 변경해야 함 #53

Closed dasd412 closed 2 years ago

dasd412 commented 2 years ago

내용은 다음과 같다. 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.

dasd412 commented 2 years ago

무료 ci 툴 중 jenkins와 github actions에서 하나를 고르기로 했다. 일단, 더 맘에 드는 것은 후자다. 이유는 다음과 같다.

  1. 깃헙 액션은 서버내 설치가 필요 없다. 또다른 aws ec2 인스턴스를 만들 필요가 없다.
  2. 소규모 프로젝트라서 똑같이 무료이다.
  3. 도커를 아직 잘 모르는데, 도커 위에 올릴 필요가 없다.

참고 https://choseongho93.tistory.com/295

dasd412 commented 2 years ago

일단, 찾은 예제는 다음과 같다. 배포 구조 역시 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/

앞에거가 더 나은 듯.

dasd412 commented 2 years ago

maven 용 yml 파일 작성 참고 자료는 다음과 같다. (위 2개는 gradle용.) https://zzang9ha.tistory.com/339

dasd412 commented 2 years ago

현재 s3에 zip 업로드까지는 정상 작동하고 있다. github/workflows/uploadS3.yml 파일이 해당 작업을 수행하는 스크립트다.

dasd412 commented 2 years ago

code deploy 까지 연동 완료. 그리고 쉘 스크립트로 자동 jar 실행도 완료.