Github tags & Renovate

Hi there, Could someone share some insights to why would Renovate even find an major update for it? https://github.com/samip5/k8s-cluster/actions/runs/3904758120/jobs/6670946037#step:5:3495
GitHub
ci(renovate): Fix typo · samip5/k8s-cluster@b906fc5
GitOps/Flux2 managed full-stack Kubernetes cluster. - ci(renovate): Fix typo · samip5/k8s-cluster@b906fc5
5 Replies
jrasm91
jrasm913y ago
Immich pushes docker images to registries with release tags following the pattern v40.1.6, etc (as you'd expect), but also with PR numbers - 1313 here refers the docker images built from the latest pull request: https://github.com/immich-app/immich/pull/1311 Docker doesn't dictate how tags are use or what pattern they follow.
Kryptonian
KryptonianOP3y ago
In case people cannot see the logs, what I mean is:
"packageFile": "cluster/apps/default/immich/app/machine-learning/helm-release.yaml",
"deps": [
{
"depName": "ghcr.io/immich-app/immich-machine-learning",
"currentValue": "v1.40.1_63-dev",
"datasource": "docker",
"replaceString": "v1.40.1_63-dev",
"versioning": "loose",
"autoReplaceStringTemplate": "{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"depIndex": 0,
"updates": [
{
"bucket": "minor",
"newVersion": "v1.41.1_64-dev",
"newValue": "v1.41.1_64-dev",
"newMajor": 1,
"newMinor": 41,
"updateType": "minor",
"branchName": "renovate/immich"
},
{
"bucket": "major",
"newVersion": "1313",
"newValue": "1313",
"newMajor": 1313,
"newMinor": null,
"updateType": "major",
"branchName": "renovate/major-immich"
}
],
"warnings": [],
"registryUrl": "https://ghcr.io",
"currentVersion": "v1.40.1_63-dev",
"isSingleVersion": true,
"fixedVersion": "v1.40.1_63-dev"
"packageFile": "cluster/apps/default/immich/app/machine-learning/helm-release.yaml",
"deps": [
{
"depName": "ghcr.io/immich-app/immich-machine-learning",
"currentValue": "v1.40.1_63-dev",
"datasource": "docker",
"replaceString": "v1.40.1_63-dev",
"versioning": "loose",
"autoReplaceStringTemplate": "{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"depIndex": 0,
"updates": [
{
"bucket": "minor",
"newVersion": "v1.41.1_64-dev",
"newValue": "v1.41.1_64-dev",
"newMajor": 1,
"newMinor": 41,
"updateType": "minor",
"branchName": "renovate/immich"
},
{
"bucket": "major",
"newVersion": "1313",
"newValue": "1313",
"newMajor": 1313,
"newMinor": null,
"updateType": "major",
"branchName": "renovate/major-immich"
}
],
"warnings": [],
"registryUrl": "https://ghcr.io",
"currentVersion": "v1.40.1_63-dev",
"isSingleVersion": true,
"fixedVersion": "v1.40.1_63-dev"
So the option to fix that is probably just configure Renovate properly to accept only that pattern with v in it. Is there an actual pattern somewhere where that is specified for releases?
jrasm91
jrasm913y ago
Tags follow this format right now, so if you can configure it to ignore anything that doesn't start with a v, that'd probably work.
No description
jrasm91
jrasm913y ago
Looks like you should be able to accomplish this with regex versioning
jrasm91
jrasm913y ago
^v(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)_.+$
No description

Did you find this page helpful?