RousselTMLEARNING

DevOps

GitLab CI/CD: concepts and architecture

Discover GitLab CI/CD: the DevSecOps platform, the .gitlab-ci.yml file, pipelines, stages and jobs, runners, predefined variables, editions and compute minutes, and how it compares with GitHub Actions, Azure DevOps and Jenkins.

1. An integrated platform #

Code, CI/CD, security and deployment in one place.

Overview #

GitLab brings together in a single application the Git repository, merge requests, CI/CD, registries (containers, packages), security scans, environments and issue tracking. CI/CD is described in a .gitlab-ci.yml file at the root of the repository: every push or merge request triggers a pipeline.

GitLab CI/CD architecture
ConceptDefinition
Pipelineall jobs triggered by an event (push, merge request, schedule, API)
Stagea step; stages run in sequence, jobs of the same stage run in parallel
Joba sequence of commands (script) run by a runner, in an image
Runnerthe agent that runs jobs: shared (GitLab.com) or self-hosted
Artefactfiles produced by a job and kept (reports, binaries)

2. Variables and context #

What each job knows about its run.

Predefined variables #

VariableContent
CI_COMMIT_SHA, CI_COMMIT_SHORT_SHAcommit identifier
CI_COMMIT_BRANCH, CI_DEFAULT_BRANCHcurrent branch, default branch
CI_PIPELINE_SOURCEorigin: push, merge_request_event, schedule, web…
CI_REGISTRY, CI_REGISTRY_IMAGEproject container registry
CI_JOB_TOKENtemporary job token (registry, API, dependencies)
CI_ENVIRONMENT_NAMEdeployment environment

Your own variables are defined in the file, or in Settings › CI/CD › Variables for sensitive values: masked (hidden in logs) and protected (only available on protected branches and tags).

3. Editions and alternatives #

What is free, what is not.

Editions #

  • GitLab.com (SaaS) or self-managed (free GitLab CE, EE); Free, Premium and Ultimate plans.
  • On GitLab.com, shared runners consume compute minutes (400 per month on Free for private projects, to be checked); a self-hosted runner consumes none.
  • Premium notably adds protected environments, deployment approvals and merge trains; Ultimate adds security dashboards and compliance.

Compared with other tools #

ToolDifference with GitLab CI
GitHub Actionsaction ecosystem, triggered by GitHub events; paid advanced security
Azure DevOpsMicrosoft suite (Boards, Repos, Pipelines), Azure integration
Jenkinsself-hosted, plugin-extensible, more operations work

Commands to know #

Commands to know
  • glab ci lint : validate .gitlab-ci.yml
  • glab ci status : branch pipeline status
  • glab ci view : follow the pipeline live
  • glab ci trace <job> : job log

Sources #

Checked in November 2026: CI/CD platforms change every month, check versions and plans in the vendor's documentation.

Related articles

Writing a .gitlab-ci.yml: jobs, rules, cache and artifacts

Mastering .gitlab-ci.yml syntax: stages, jobs and images, rules and workflow, needs (DAG), cache and artifact…

GitLab runners: types, executors, installation and security

Running GitLab jobs: instance, group and project runners, docker, kubernetes and docker-autoscaler executors,…

Building and delivering with GitLab: registry, environments and deployments

Delivering with GitLab CI/CD: building and publishing images to the project registry, package registry, envir…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!