Migrate renovate config #47

Merged
jahanson merged 1 commit from renovate/migrate-config into main 2024-11-17 11:37:51 -06:00
Showing only changes of commit 81e8c7d28f - Show all commits

View file

@ -1,28 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "docker:pinDigests"],
"nix": {
"enabled": true
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended", "docker:pinDigests"],
nix: {
enabled: true,
},
"ignorePaths": ["**/*.sops.*", "**/.archive/**", "**/resources/**"],
// "lockFileMaintenance": {
// "enabled": true,
// "extends": [
// "schedule:daily"
// ]
// },
"customManagers": [
ignorePaths: ["**/*.sops.*", "**/.archive/**", "**/resources/**"],
customManagers: [
{
"customType": "regex",
"description": "Process various dependencies in nix files",
"fileMatch": ["\\.nix$"],
"matchStrings": [
// Newline
"(?m:^[ \\t]*?# ?renovate: depName=(?<depName>\\S+)( datasource=(?<datasource>\\S+))?( versioning=(?<versioning>\\S+))?( extractVersion=(?<extractVersion>\\S+))?\\n[ \\t ]*?\\S+ = \"?(?<currentValue>[^\" ]+?)\";?$)"
customType: "regex",
description: "Process various dependencies in nix files",
fileMatch: ["\\.nix$"],
matchStrings: [
'(?m:^[ \\t]*?# ?renovate: depName=(?<depName>\\S+)( datasource=(?<datasource>\\S+))?( versioning=(?<versioning>\\S+))?( extractVersion=(?<extractVersion>\\S+))?\\n[ \\t ]*?\\S+ = "?(?<currentValue>[^" ]+?)";?$)',
],
datasourceTemplate: "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
extractVersionTemplate: "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}",
},
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}"
}
]
}