This is a sample Node.js application with a fully automated CI/CD pipeline using GitHub Actions and DockerHub.
This project demonstrates how to:
- Build and test a Node.js application
- Automatically build a Docker image
- Push the Docker image to DockerHub
- Trigger the entire workflow on every push to the
mainbranch
- Node.js
- GitHub Actions
- Docker & DockerHub
The GitHub Actions workflow does the following:
- Checkout the repository
- Set up Node.js environment
- Install project dependencies
- Run unit tests (
npm test) - Build the Node.js app
- Build Docker image
- Login to DockerHub using GitHub Secrets
- Push image to DockerHub repository
You can find the built Docker image here: