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,
- main branch triggers build and deploy,
- tags trigger release pipelines.
This ensures controlled promotion of changes.