Unclear behavior of matchRegistryUrls / registryUrls for docker datasource packages #42971
-
How are you running Renovate?None Which platform you running Renovate on?GitLab (.com or self-hosted) Which version of Renovate are you using?43.129.0 Please tell us more about your question or problemIn #41966 a great new feature was added - matchRegistryUrls as a package rule. I'm not quite sure if I can replace and improve my existing docker package rule here, as docker dependencies typically come with the registry name right inside the packageName. Example: {
"matchDatasources": ["docker"],
"matchPackageNames": [
"!registry.gitlab.example.com{/,}**",
"!*.artifactory.example.com{/,}**"
],
"registryUrls": ["https://docker.artifactory.example.com"]
}I used this rule to point any already compliant image registries to the company default "https://docker.artifactory.example.com". # renovate: datasource=docker depName=traefik1 packageName=ghcr-io.artifactory.example.com/traefik/traefik versioning=helm
TAEFIK_VERSION: 39.0.0
# renovate: datasource=docker depName=traefik2 packageName=traefik/traefik versioning=helm registryUrl=ghcr-io.artifactory.example.com
TAEFIK_VERSION: 39.0.0Can I now use this as as drop-in replacement that handles both cases and is thus more robust? {
"matchDatasources": ["docker"],
"matchRegistryUrls": [
"!{https://,}registry.gitlab.example.com{/,}**",
"!{https://,}*.artifactory.example.com{/,}**",
]
"registryUrls": ["https://docker.artifactory.example.com"]
}I also would love to actually drop all those package rules and use registryAliases instead - but all my most of my deps are parsed using custom regex Managers... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
docker datasource doesn't handle |
Beta Was this translation helpful? Give feedback.
docker datasource doesn't handle
registryUrlswell, you should avoid that and use properpackageNameand / orregistryAliases.