Renovate fix
General MR
Summary
Renovate was unable to take the portion of the version that followed the hyphen into account when running. For example, if the image is 3.62.0-01, it will not automatically replace that with 3.62.0-02. It would only take the 3.62.0 portion into account. Adding a package rule for loose versioning allowed it take the entire version into account.
Relevant logs/screenshots
Forked the repo into my personal space, changed the current image version to 3.62.0-001 and then enabled loose versioning. Upon running the renovate utility from the cli against my repo I was able to verify it correctly picked up the update (without the option it did not take any action):
"deps": [
{
"depName": "ironbank/sonatype/nexus/nexus",
"currentValue": "3.62.0-001",
"datasource": "docker",
"registryUrls": [
"https://registry1.dso.mil/"
],
"replaceString": "- Nexus: 3.62.0-001",
"updates": [
{
"bucket": "latest",
"newVersion": "3.62.0-01",
"newValue": "3.62.0-01",
"newMajor": 3,
"newMinor": 62,
"updateType": "patch",
"branchName": "renovate/ironbank"
}
],
"packageName": "ironbank/sonatype/nexus/nexus",
"versioning": "loose",
"warnings": [],
"sourceUrl": "https://repo1.dso.mil/dsop/sonatype/nexus/nexus",
"registryUrl": "https://registry1.dso.mil",
"homepage": "https://download.sonatype.com/nexus/3/nexus-3.62.0-01-unix.tar.gz",
"currentVersion": "3.62.0-001",
"isSingleVersion": true,
"fixedVersion": "3.62.0-001"
}
]
relates to issue #73 (closed)