I am new to DevOps and am trying to create a gitlab-ci that will:
- Test my Ruby on Rails app with Rubocop & Rspec
- If tests pass, build a Docker image of the branch
- Push the Docker image to a repo - DockerHub or GCR
- Trigger Docker-Compose to restart, pulling down the new image
I find the GitLab documentation very confusing. I’m using GitLab.com, but not sure if the docs I’m reading are aimed at PaaS version or self-installed, etc. Can anyone point me to a primer or tutorial?