2024-09-25 08:11:49 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
|
|
"packageRules": [
|
|
|
|
{
|
|
|
|
"description": "Separate minor and patch updates for k3s",
|
|
|
|
"matchDatasources": ["github-releases"],
|
|
|
|
"matchPackageNames": ["k3s-io/k3s"],
|
|
|
|
"separateMultipleMinor": true,
|
|
|
|
"separateMinorPatch": true,
|
|
|
|
"branchTopic": "{{{depNameSanitized}}}{{#if isMinor}}-minor{{/if}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}",
|
|
|
|
"commitMessageSuffix": "{{#if isMinor}}(minor){{/if}}{{#if isPatch}}(patch){{/if}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "No automerge for k3s major and minor updates",
|
|
|
|
"matchDatasources": ["github-releases"],
|
|
|
|
"matchPackageNames": ["k3s-io/k3s"],
|
|
|
|
"matchUpdateTypes": ["major", "minor"],
|
|
|
|
"automerge": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Group k3s patch updates",
|
|
|
|
"matchDatasources": ["github-releases"],
|
|
|
|
"matchPackageNames": ["k3s-io/k3s"],
|
|
|
|
"matchUpdateTypes": ["patch"],
|
|
|
|
"groupName": "k3s"
|
|
|
|
},
|
|
|
|
{
|
2024-09-25 08:52:10 +00:00
|
|
|
"description": "Disable k3s major and minor updates for old versions",
|
2024-09-25 08:11:49 +00:00
|
|
|
"matchDatasources": ["github-releases"],
|
|
|
|
"matchFileNames": [".forgejo/workflows/**"],
|
|
|
|
"matchPackageNames": ["k3s-io/k3s"],
|
|
|
|
"matchUpdateTypes": ["major", "minor"],
|
2025-01-15 09:34:35 +00:00
|
|
|
"matchCurrentValue": "!/^v1.32/",
|
2024-09-25 08:11:49 +00:00
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"customDatasources": {
|
|
|
|
"k3s": {
|
|
|
|
"defaultRegistryUrlTemplate": "https://update.k3s.io/v1-release/channels",
|
|
|
|
"transformTemplates": [
|
|
|
|
"($isVersion:=function($name){$contains($name,/^v\\d+.\\d+$/)};{\"releases\":[data[$isVersion(name)].{\"version\":latest}],\"sourceUrl\":\"https://github.com/k3s-io/k3s\",\"homepage\":\"https://k3s.io/\"})"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"customManagers": [
|
|
|
|
{
|
|
|
|
"customType": "regex",
|
|
|
|
"fileMatch": [".forgejo/renovate/k3s.json"],
|
|
|
|
"matchStrings": [
|
2024-11-01 15:28:10 +00:00
|
|
|
"matchCurrentValue\": \"!\\/^v(?<currentValue>\\d+\\.\\d+)\\/"
|
2024-09-25 08:11:49 +00:00
|
|
|
],
|
|
|
|
"depNameTemplate": "k3s",
|
|
|
|
"versioningTemplate": "npm",
|
|
|
|
"datasourceTemplate": "custom.k3s"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|