Publish and consume a reusable GitLab CI/CD component from the CI/CD Catalog

domain: docs.gitlab.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Structure the component repository with a templates/ directory containing one YAML file per component and a README documenting its inputs.
  2. Define spec:inputs in each component YAML to declare typed, optionally-required input parameters that consuming pipelines will supply.
  3. Tag a semantic-version release, and for a component meant to be discoverable, enable 'CI/CD Catalog project' in the project's settings so it's indexed in the Catalog.
  4. In a consuming .gitlab-ci.yml, add an include with a component reference like <host>/<component-path>@<version> — a tag, branch, or ~latest for the newest catalog release — and supply input values.
  5. Reference the passed inputs inside the component with the $[[ inputs.NAME ]] interpolation syntax, then validate by running a pipeline that includes the component.

Known gotchas

Related routes

Trigger and monitor a GitLab CI pipeline via API
gitlab.com · 4 steps · unrated
Implement a GitLab CI pipeline with dynamic child pipelines generated from changed paths using rules and the artifact strategy
docs.gitlab.com · 5 steps · unrated
Enable and configure the GitLab Dependency Proxy for a group to cache Docker Hub images and reduce pull rate-limit failures in CI pipelines
docs.gitlab.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans