diff --git a/.github/renovate/customManagers.json5 b/.github/renovate/customManagers.json5 index b84787df..b446733a 100644 --- a/.github/renovate/customManagers.json5 +++ b/.github/renovate/customManagers.json5 @@ -8,9 +8,9 @@ "apps/.+/metadata\\.json$" ], "matchStrings": [ - "(\"renovate::dataSource\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::depName\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::packageName\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::versioning\":\\s*\"(?[^\"]+)\",)?\\s*\"version\":\\s*\"(?[^\"]+)\"" + "(\"renovate::dataSource\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::depName\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::packageName\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::extractVersion\":\\s*\"(?[^\"]+)\",)?\\s*(\"renovate::versioning\":\\s*\"(?[^\"]+)\",)?\\s*\"version\":\\s*\"(?[^\"]+)\"" ], - "extractVersionTemplate": "^[^\\d]*(?(?:\\d+\\.)+\\d+).*$", + "extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^[^\\d]*(?(?:\\d+\\.)+\\d+).*${{/if}}", "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}", "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}" }, { diff --git a/apps/talosctl/metadata.json b/apps/talosctl/metadata.json index bf8741d0..74047d9f 100644 --- a/apps/talosctl/metadata.json +++ b/apps/talosctl/metadata.json @@ -7,8 +7,8 @@ "name": "stable", "renovate::dataSource": "docker", "renovate::depName": "ghcr.io/siderolabs/talosctl", - "renovate::versioning": "semver", - "version": "1.7.6", + "renovate::extractVersion": "^v?(?(?:[0-9]+[.])+[0-9]+)$", + "version": "1.7.5", "platforms": [ "linux/amd64", "linux/arm64" diff --git a/metadata.rules.cue b/metadata.rules.cue index 8fce0304..7d868864 100644 --- a/metadata.rules.cue +++ b/metadata.rules.cue @@ -8,10 +8,11 @@ #Channels: { name: #NonEmptyString - "renovate::dataSource"?: string - "renovate::depName"?: string - "renovate::packageName"?: string - "renovate::versioning"?: string + "renovate::dataSource"?: string + "renovate::depName"?: string + "renovate::packageName"?: string + "renovate::extractVersion"?: string + "renovate::versioning"?: string baseimgversion?: string metavar?: string version: #NonEmptyString