From f05e8a3126e96c68152c5be9e1a6665673001cd5 Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Fri, 22 Mar 2024 15:42:11 +0100 Subject: [PATCH] feat: added custom datasource for dnsmasq --- renovate.json | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 5db72dd..929e349 100644 --- a/renovate.json +++ b/renovate.json @@ -2,5 +2,47 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended" - ] + ], + "branchPrefix": "renovate-", + "branchNameStrict": true, + "ignorePaths": [ + "**/ui/**" + ], + "packageRules": [ + { + "matchPackageNames": [ + "docker.io/node" + ], + "allowedVersions": "<= 18" + }, + { + "matchPackageNames": [ + "dnsmasq" + ], + "matchDatasources": [ + "cutom.dnsmasq" + ], + "extractVersion": "dnsmasq-(?\\d+)\\.(?\\d+)$" + } + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "build-images.sh" + ], + "matchStrings": [ + "^DNSMASQ_VERSION=(?[^\\s]*)$" + ], + "versioningTemplate": "regex:(?\\d+)\\.(?\\d+)", + "depNameTemplate": "dnsmasq", + "datasourceTemplate": "custom.dnsmasq" + } + ], + "customDatasources": { + "dnsmasq": { + "defaultRegistryUrlTemplate": "https://dnsmasq.org/", + "format": "html" + } + } }