CI/CD Pipeline for basic Node.js "hello world" application using GitHub Actions, Docker, and AWS EC2 instance.
Process:
- Create Node.js "hello world" app repo
- Setup Dockerhub repo with same repo name
- Use GitHub Actions Docker Image workflow to build Docker repo of Github repo (CI pipeline)
- Setup EC2 instance on AWS to allow for public traffic
- Setup GitHub Actions runner on EC2 instance (install dotnet 6 on EC2 instance)
- Create GitHub Actions CD workflow on self-hosted runner to deploy Deocker repo on EC2 instance
- Setup Nginx server to host Docker IP address
Source: CI/CD Pipeline Tutorial