CI/CD with Gitlab Runner and Docker-Compose
Blog : https://medium.com/@sean_bradley/auto-devops-with-gitlab-ci-and-docker-compose-f931233f080f
Digital Ocean - https://m.do.co/c/23d277be9014 ($50 free credit for 30 days)
Alternatively, I also have a Hetzner Cloud coupon where you will receive €20 in FREE credits : https://hetzner.cloud/?ref=9P2JvW3y3OBA
GitLab - https://gitlab.com/seanwasere/Seans-Angular6-Python-Flask-Boilerplate
This video is a short tutorial about setting up continuous integration and deployment using GitLab-runner and docker-compose.
Install GitLab Runner. See Instructions here
https://docs.gitlab.com/runner/install/linux-manually.html
or
https://medium.com/@sean_bradley/installing-gitlab-runner-on-ubuntu-and-centos-80f3a2de0290
After you install and register GitLab runner,
$ sudo apt install docker.io
$ sudo nano /etc/sudoers
add the line below
gitlab-runner ALL=(ALL) NOPASSWD: ALL
$ sudo usermod -aG docker gitlab-runner
$ sudo gitlab-runner restart
Now make a change to your code, commit and push.
See Video for what happens next.
#cicd
#gitlab
#dockerCompose