Renovate getting the wrong latest tag with the docker datasource #9159
-
What Renovate type, platform and version are you using? hosted app on Github Describe the bug renovate uses the wrong tag in the Relevant debug logs
Have you created a minimal reproduction repository? reproduction is done here (the relevant image is Additional context it's hard to test this, but I assume the problem is with the following line: renovate/lib/datasource/docker/index.ts Line 640 in f8580a1 because the registry for this image does actually include a |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 30 replies
-
Thank you for providing a reproduction! 🎉 🚀 The Renovate team will take a look at the reproduction repository. Once we confirm the provided repository reproduces the problem, the label will be changed to |
Beta Was this translation helpful? Give feedback.
-
The reproduction repository seems different from the description here. Can you please double check and clarify? |
Beta Was this translation helpful? Give feedback.
-
It's not, it just had some additional stuff in there. I cleaned it up so it's more obvious. |
Beta Was this translation helpful? Give feedback.
-
why is the issue closed ?? |
Beta Was this translation helpful? Give feedback.
-
The default versioning that Renovate uses for Docker is quite flexible by necessity, because many packages like this don't restrict themselves to a proper tagging convention (e.g. semver). In this case To solve this you can configure {
"packageRules": [{
"matchPackageNames": ["quay.io/bitnami/sealed-secrets-controller"],
"versioning": "semver"
}]
} |
Beta Was this translation helpful? Give feedback.
-
I think allowedversions needs to be sett to an regex. {
...
"allowedversions": "/^v\\d+\\.\\d+\\.\\d+$/"
} |
Beta Was this translation helpful? Give feedback.
-
I opened a PR for removing the 20 page limit here: let me know if this makes sense to you or if you would prefer to just bump the limit (or go another direction entirely). |
Beta Was this translation helpful? Give feedback.
I opened a PR for removing the 20 page limit here:
#9173
let me know if this makes sense to you or if you would prefer to just bump the limit (or go another direction entirely).