GitLab Pipeline Architecture¶
Pipeline stages¶
The GitLab CI pipeline is structured into the following stages:
- base
-
prepare base images and shared artifacts.
-
linting
-
code style and static analysis.
-
build
-
build Docker images for services.
-
deploy-images
-
push images to the container registry.
-
deploy
-
deploy services via Helm to Kubernetes.
-
release
-
tag and promote releases.
-
pages
- build and publish documentation.
Pipeline philosophy¶
- fail fast on quality issues,
- separate build from deploy,
- promote artifacts, not source code,
- keep production deploys explicit and auditable.
Triggering rules¶
- merge requests trigger validation pipelines (lint, test, build),
- pushes to
maintrigger build and image push, - deployment to staging requires a manual trigger after CI passes,
- deployment to production requires manual approval and quality gates.
This ensures controlled promotion of changes. Production deploys are never triggered automatically.