Files
renovate/lib/modules/manager/gitlabci
Sebastian Poxhofer 2fc46bdcfa test(manager): replace file snapshots with explicit assertions (#45656)
* test(manager): replace file snapshots with explicit assertions

* test(manager): replace inline snapshots with explicit assertions

* test(manager): assert on relevant sections instead of full bodies

* test(manager): drop assertions implied by full equality

* test(manager): address review feedback

* test(manager): assert depType and versioning in the regex matcher
2026-09-04 06:36:39 +00:00
..

Extracts Docker dependencies from gitlab-ci.yml files.

If you need to change the versioning format, read the versioning documentation to learn more.

If you use Gitlab Dependency Proxy then you can use these predefined variables as prefixes for your image:

  • CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
  • CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX

If you use predefined GitLab CI variables like CI_REGISTRY or CI_SERVER_FQDN make sure to configure their value via registryAliases:

{
  "registryAliases": {
    "$CI_REGISTRY": "registry.example.com",
    "$CI_SERVER_FQDN": "gitlab.example.com",
    "$CI_SERVER_HOST": "gitlab.example.com"
  }
}

Variables with default values (using the :- syntax) are also supported:

{
  "registryAliases": {
    "${CI_REGISTRY:-}": "registry.example.com"
  }
}

Both image reference formats work:

  • With a slash after the variable: ${CI_REGISTRY:-}/image:1.0
  • Without a slash after the variable: ${CI_REGISTRY:-}image:1.0

The alias value works with or without a trailing slash.