Needs a renovate pattern for accepting such migration path :both v2.1.0-20260514 → v2.2.1 but ignores v5.3.0-20260514 → v5.3.0 #45347
Replies: 2 comments
|
Both symptoms are the same cause. docker versioning reads
You want the date as a fourth numeric part instead of a tag. That's {
"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": ["<your image>"],
"versioning": "regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(-(?<build>\\d+))?$"
}
]
}Your two cases:
You can drop the Two gotchas: capture groups have to be purely numeric, which is why |
|
Use {
"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": ["your/image"],
"versioning": "regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-(?<build>\\d+))?$"
}
]
}The capture group is what decides the behaviour. The other two groups give you exactly the two behaviours you are trying to get away from: Useful side effect: the regex acts as an allow list, so Checked against renovate 43.288.0: Adjust the |
Uh oh!
There was an error while loading. Please reload this page.
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
GitLab (.com or self-hosted)
Which version of Renovate are you using?
43.256.0
Please tell us more about your question or problem
when using docker versioning , v2.1.0-20260514 → v2.2.1 is never suggested, the v2.1.0-20260514 is ignored
when using loose versioning, v2.1.0-20260514 → v2.2.1 is suggested but v5.3.0-20260514 → v5.3.0 is not desired.
Is there a way to configure to only accept migration towards a patch +1 or towars a patch-xxxx .
I put som exception rules (-dev, -rc ...) with loose versionning, my concern is how to define a rule to authorize the expectation below.
Logs (if relevant)
Logs
All reactions