From 73ef16363021d133f787e6d5ce40f8f186401d4f Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 18 Jul 2024 11:51:42 +0200 Subject: [PATCH] [renovate] feat: add ansible vars and dockerfile to default config --- default.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/default.json b/default.json index b68ba5b..1268992 100644 --- a/default.json +++ b/default.json @@ -17,5 +17,26 @@ "automerge": true } ], - "branchPrefix": "renovate_" + "branchPrefix": "renovate_", + "customManager": [ + { + "customType": "regex", + "description": "Update _version variables in Ansible", + "fileMatch": ["(.*).ya?ml$"], + "matchStrings": [ + "# renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?[a-z0-9-]+?))?\\s.+?_version: '(?.+?)'\\s" + ], + "extractVersionTemplate": "^v(?.*)$" + }, + { + "customType": "regex", + "description": "Update _VERSION variables in Dockerfiles", + "fileMatch": ["Dockerfile(.*)"], + "matchStrings": [ + "# renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?[a-z0-9-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?.+?)\\s" + ], + "versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}" + } + ] + }