Example repo Node.js CI/CD with GitHub Actions
The example web app needs to connect to a MongoDB instance.
The repo provides a [Dockerfile] and a docker-compose.yaml
to
help you understand how the app works:
# Interactive run
docker compose -f ./deploy/docker-compose.yaml up;
# Detached run
docker compose -f ./deploy/docker-compose.yaml up -d;
The goals are incremental:
-
Build and test Node.js app code after pushes
-
(TODO) Build Docker image and publish to DockerHub after new tag pushes
-
(TODO) Deploy to servers or clusters