From 1c8befa9a506ffb90eb434687ea352a9e8b35f35 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 | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 5db72dd..b7bfb24 100644 --- a/renovate.json +++ b/renovate.json @@ -2,5 +2,44 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended" - ] + ], + "branchPrefix": "renovate-", + "branchNameStrict": true, + "ignorePaths": [ + "**/ui/**" + ], + "packageRules": [ + { + "matchPackageNames": [ + "docker.io/node" + ], + "allowedVersions": "<= 18" + }, + { + "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" + } + } }