Skip to content

Commit

Permalink
fix(renovate): support for extraVersionTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Aug 14, 2024
1 parent 06211f0 commit c4331bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/renovate/customManagers.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"apps/.+/metadata\\.json$"
],
"matchStrings": [
"(\"renovate::dataSource\":\\s*\"(?<datasource>[^\"]+)\",)?\\s*(\"renovate::depName\":\\s*\"(?<depName>[^\"]+)\",)?\\s*(\"renovate::packageName\":\\s*\"(?<packageName>[^\"]+)\",)?\\s*(\"renovate::versioning\":\\s*\"(?<versioning>[^\"]+)\",)?\\s*\"version\":\\s*\"(?<currentValue>[^\"]+)\""
"(\"renovate::dataSource\":\\s*\"(?<datasource>[^\"]+)\",)?\\s*(\"renovate::depName\":\\s*\"(?<depName>[^\"]+)\",)?\\s*(\"renovate::packageName\":\\s*\"(?<packageName>[^\"]+)\",)?\\s*(\"renovate::extractVersion\":\\s*\"(?<extractVersion>[^\"]+)\",)?\\s*(\"renovate::versioning\":\\s*\"(?<versioning>[^\"]+)\",)?\\s*\"version\":\\s*\"(?<currentValue>[^\"]+)\""
],
"extractVersionTemplate": "^[^\\d]*(?<version>(?:\\d+\\.)+\\d+).*$",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^[^\\d]*(?<version>(?:\\d+\\.)+\\d+).*${{/if}}",
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}"
}, {
Expand Down
4 changes: 2 additions & 2 deletions apps/talosctl/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?(?<version>(?:[0-9]+[.])+[0-9]+)$",
"version": "1.7.5",
"platforms": [
"linux/amd64",
"linux/arm64"
Expand Down
9 changes: 5 additions & 4 deletions metadata.rules.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4331bb

Please sign in to comment.