diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 0000000..8ddc9a2 --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,63 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "configMigration": true, + "extends": [ + 'config:recommended', + + // Make sure we get a single PR combining all updates + 'group:all', + ], + "automerge": false, + "separateMinorPatch": true, + "gitAuthor": "renovate[bot] ", + "enabledManagers": [ + "dockerfile", + "custom.regex" + ], + "packageRules": [ + { + "matchDatasources": [ + "repology" + ], + "matchPackagePatterns": [ + "^debian_" + ], + "groupName": "debian packages", + "groupSlug": "debian" + }, + { + "matchDatasources": [ + "repology" + ], + "matchPackagePatterns": [ + "^ubuntu_" + ], + "groupName": "ubuntu packages", + "groupSlug": "ubuntu" + } + ], + "customManagers": [ + { + "description": "Update packages set in Dockerfiles", + "customType": "regex", + "fileMatch": [ + '(^|/|\\.)([Dd]ocker|[Cc]ontainer)file$', + '(^|/)([Dd]ocker|[Cc]ontainer)file[^/]*$', + ], + "matchStrings": [ + "#\\srenovate:\\sdatasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?( extractVersion=(?.*?))?\\s(ENV|ARG) .*?_VERSION=\"(?.*)\"\\s" + ], + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}loose{{/if}}", + "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}repology{{/if}}" + } + ], + + // Disable dependency dashboard + "dependencyDashboard": false, + + // Use our labelling system + "labels": ['dependencies'], + + // We generally always want the major version + "separateMajorMinor": false, +}