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}}" + } + ] + }