CI/CD a NodeJS API with GitLab Runner and Docker-Compose

Channel:
Subscribers:
25,200
Published on ● Video Link: https://www.youtube.com/watch?v=Qlj6NiOy5jM



Duration: 11:38
30,247 views
403


GitHub : https://github.com/Sean-Bradley/Seans-TypeScript-NodeJS-CRUD-REST-API-Boilerplate
GitLab mirror: https://gitlab.com/seanwasere/Seans-TypeScript-NodeJS-CRUD-REST-API-Boilerplate

In this video I setup CI/CD for a pre built NodeJS API I created. The NodeJS API is built using docker-compose.

I create the Dev, UAT, Staging and Production branches using Git, push to GitHub,

I then setup GitLab to mirror the GitHub repository.

I then purchase an Ubuntu server from Digital Ocean : https://m.do.co/c/23d277be9014
Alternatively, I also have a Hetzner Cloud coupon where you will receive €20 in FREE credits : https://hetzner.cloud/?ref=9P2JvW3y3OBA

I install GitLab runner and register it.
https://medium.com/@sean_bradley/installing-gitlab-runner-on-ubuntu-and-centos-80f3a2de0290

The GitLab runner, upon detecting changes to the chosen branches, will pull the latest commit and rebuild on the servers where I've installed the GitLab runners.

If you got this far, you probably like TypeScript just like I do,
I have created a course to teach TypeScript together with Socket.IO so please check it out.
https://youtu.be/3uLSNctzkkw

Thanks for watching, remember to like, comment, subscribe and share.







Tags:
gitlab
gitlab runner
nodejs
nodejs engineer
ci/cd
auto deploy
git
digital ocean
cloud computing
docker
docker-compose
github
typescript
nginx