nohkwangsun / bookstore

서점 예제
1 stars 1 forks source link

웹 CLI 자동 배포 #36

Closed nohkwangsun closed 2 years ago

nohkwangsun commented 2 years ago

github main repo push 되는 경우 자동 배포 처리

nohkwangsun commented 2 years ago

springboot로 간단하게 구현

  1. bookstore 에 webhook 정의
  2. github 에서 main 브랜치에 push (merge)
  3. push되면, github-webhook-listener 에 rest api 호출
  4. github-webhook-listener에서는 명령어 실행
  5. 명령어는 bookstore 의 build.sh , stop.sh, start.sh 를 차례로 실행

https://github.com/nohkwangsun/github-webhook-listener