Using GL to run tests, create Docker image, push to repo

I am new to DevOps and am trying to create a gitlab-ci that will:

  1. Test my Ruby on Rails app with Rubocop & Rspec
  2. If tests pass, build a Docker image of the branch
  3. Push the Docker image to a repo - DockerHub or GCR
  4. 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?

Many thanks!

Hi @JetsonDavis
GitLab CI is the same for SaaS or PaaS, you can start here