ci/cd
ci : Continuous Integration, 지속적 통합 -github,test code
cd : Continuous Deployment, 지속적 배포 next.js 최신버전으로 업데이트 되는 것.
1.vecel : next.js 배포하는 가장 쉬운 방법(SASS)
2.AWS EC2, nextjs github pull > build (EC2 node.js 설치) > start
EC2 public IP -> Port 4000 server 실행 -> PortBind 나의 nextjs 접속가능.
3. nextjs > docker image > docker hub push > EC2 > docker image pull > docker run(aws+docker)
4. github push > docker image(CI) > portainer(CD)> docker container run
5. github push > docker image(CI) > k8's > docker container
추가설명.
https://chatgpt.com/share/03c4b57b-7bf1-43fd-b696-4bb5166a7f8e