From 83447afb939f9b516cf61e37e9e309cf847d6f89 Mon Sep 17 00:00:00 2001 From: Max Leske Date: Fri, 26 Apr 2024 08:56:56 +0200 Subject: [PATCH] feat: manage deps with renovate --- renovate.json | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..4b12999 --- /dev/null +++ b/renovate.json @@ -0,0 +1,126 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ], + "enabledManagers": [ + "custom.regex" + ], + "packageRules": [ + { + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch", + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "prBodyColumns": [ + "Package", + "Type", + "Update", + "Change", + "Pending" + ] + }, + { + "groupName": "all major dependencies", + "groupSlug": "all-major", + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "major" + ], + "prBodyColumns": [ + "Package", + "Type", + "Update", + "Change", + "Pending" + ] + } + ], + "customManagers": [ + { + "description": "ModSecurity 3", + "depNameTemplate": "ModSecurity 3", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"modsec3-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "owasp-modsecurity/ModSecurity", + "datasourceTemplate": "github-releases" + }, + { + "description": "ModSecurity 2", + "depNameTemplate": "ModSecurity 2", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"modsec2-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "owasp-modsecurity/ModSecurity", + "datasourceTemplate": "github-releases" + }, + { + "description": "CRS", + "depNameTemplate": "CRS", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"crs-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "coreruleset/coreruleset", + "datasourceTemplate": "github-releases" + }, + { + "description": "nginx", + "depNameTemplate": "nginx", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"nginx-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "nginxinc/nginx-unprivileged", + "datasourceTemplate": "docker" + }, + { + "description": "httpd", + "depNameTemplate": "httpd", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"nginx-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "httpd", + "datasourceTemplate": "docker" + }, + { + "description": "openresty", + "depNameTemplate": "openresty", + "customType": "regex", + "fileMatch": [ + "^docker-bake.hcl$" + ], + "matchStrings": [ + "^variable \"nginx-version\" {\\n\\s+default = \"(? [^\"]+)\"" + ], + "packageNameTemplate": "openresty/openresty", + "datasourceTemplate": "docker" + } + ] +}