GitLab puts source control, CI/CD, a container registry and deployment tracking in one place, which makes it a popular choice for agencies and self-hosted teams. A pipeline file that starts as ten lines can soon become slow, duplicated and hard to change. This course shows how to design GitLab pipelines that stay fast and readable as projects grow, and deploy safely to real environments.

What you'll learn

  • How GitLab pipelines run: jobs, stages, runners and executors
  • Writing .gitlab-ci.yml with rules, needs and directed acyclic graph (DAG) pipelines
  • Merge request pipelines, branch pipelines and avoiding duplicate runs
  • Caching dependencies and passing artifacts between jobs
  • Shared, group and self-managed runners, including Docker and Kubernetes executors
  • Reusing configuration with include, extends, anchors and CI/CD components from the catalog
  • CI/CD variables, protected and masked variables, and OIDC with cloud providers instead of long-lived keys
  • Environments, review apps, manual approvals and deployment rollbacks
  • Building and pushing images to the GitLab container registry
  • Parent-child and multi-project pipelines for monorepos and larger systems

Who it's for

  • Developers whose team uses GitLab and who want to own the pipeline
  • DevOps engineers migrating from Jenkins or another CI system
  • Agencies running many client projects on one GitLab instance

Prerequisites

  • Comfortable with Git branches and merge requests (see Git and GitHub Workflows for Teams)
  • Basic Docker knowledge
  • A GitLab.com account or access to a self-managed instance

Outcomes

By the end of this course you will be able to:

  1. Write a pipeline that tests, builds and deploys an app on every merge request and merge.
  2. Cut pipeline time with caching, artifacts and needs.
  3. Reuse pipeline configuration across many projects with includes and components.
  4. Deploy to staging and production with approvals and without storing cloud keys in GitLab.

Course outline

ModuleTopic
1Pipelines, jobs, stages and runners
2Writing .gitlab-ci.yml and validating it
3Rules, workflow and merge request pipelines
4needs, DAGs and parallel jobs
5Caching and artifacts
6Runners and executors
7Variables, secrets and OIDC
8Reuse: include, extends and CI/CD components
9Container builds and the registry
10Environments, review apps and approvals
11Parent-child and multi-project pipelines
12Project: a full pipeline for a web app

FAQ

How is this different from the GitHub Actions course?

The concepts overlap, but the syntax, runners and features differ. If your code lives on GitHub, take CI/CD with GitHub Actions instead.

Do I need a paid GitLab plan?

No. The core of the course works on the free tier. A few features such as some approval rules need a paid tier, and we point those out.

Does it cover security scanning?

We show where scanners fit in a pipeline. The full picture is in DevSecOps: Security in CI/CD.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.