mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 15:31:53 +00:00
2fc46bdcfa
* 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
Extracts all Docker images from with Docker Compose YAML files.
If you need to change the versioning format, read the versioning documentation to learn more.
Registry aliases with variable defaults
Docker Compose files often use environment variables with default values:
services:
foobar:
image: ${CI_REGISTRY:-}image:1.0
To handle these variables, configure registry aliases with the default value syntax:
{
"registryAliases": {
"${CI_REGISTRY:-}": "my-registry.io"
}
}
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.