From ce11a8a7c9115472cbe13ea9a4f2baa13321df47 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 28 Sep 2024 13:13:48 +0200 Subject: [PATCH] fix(renovate): update config --- renovate.json | 45 +++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/renovate.json b/renovate.json index 69a6494..6be35d3 100644 --- a/renovate.json +++ b/renovate.json @@ -1,40 +1,29 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "assignees": [ "volker.raschek" ], - "labels": [ "renovate" ], - "packageRules": [ - { - "addLabels": [ "renovate/droneci", "renovate/automerge" ], - "automerge": true, - "matchManagers": "droneci", - "matchUpdateTypes": [ "minor", "patch"] - }, - { - "description": "Automatically update patch version of used container images in docker files", - "addLabels": [ "renovate/container-image", "renovate/automerge" ], - "automerge": true, - "matchBaseBranches": [ "master" ], - "matchManagers": [ "dockerfile" ], - "matchUpdateTypes": [ "patch" ] - }, - { - "addLabels": [ "renovate/yamllint", "renovate/automerge" ], - "automerge": false, - "matchPackageNames": [ "yamllint" ], - "matchManagers": [ "regex" ] - } - ], - "rebaseLabel": "renovate/rebase", - "rebaseWhen": "behind-base-branch", - "regexManagers": [ + "customManagers": [ { + "customType": "regex", "description": "Update version", "fileMatch": [ "^Makefile$" ], "matchStrings": [ - "YAMLLINT_VERSION\\?=(?.*) # renovate: datasource=(?.*) depName=(?.*)( lookupName=(?.*))?( versioning=(?.*))?" + "^[^\\s]*VERSION(:|\\?)?=\"?(?[\\w.]*)\"? # renovate:([\\s]+datasource=['\"]*(?[^\\s\"']*)['\"]*|[\\s]+depName=['\"]*(?[^\\s'\"]*)['\"]*|[\\s]+registryUrl=['\"]*(?[^\\s'\"]*)['\"]*|[\\s]+versioning=['\"]*(?[^\\s'\"]*)['\"]*)*" ] } - ] + ], + "labels": [ "renovate" ], + "packageRules": [ + { + "description": "Automatically update grouped public container images - patch", + "addLabels": ["renovate/automerge","renovate/container-images"], + "automerge": true, + "enabled": true, + "matchDatasources": ["docker"], + "matchUpdateTypes": ["minor", "patch"] + } + ], + "rebaseLabel": "renovate/rebase", + "rebaseWhen": "behind-base-branch" }