From 2f5a2ac3e18e92e89353ce55fb1c670ba52d05b0 Mon Sep 17 00:00:00 2001 From: saibotk Date: Mon, 12 Oct 2020 21:07:29 +0200 Subject: [PATCH] renovate: Add automatic version upgrades for docker containers This is the renovate config, to allow renovate to check ansible variables with docker container tags. This configuration was taken from Sheogoraths Infrastructure repository: https://git.shivering-isles.com/shivering-isles/infrastructure/-/blob/6c1dc180d459f3dcddb04e19202edf8bef6b5621/.renovaterc.json Thank you <3 --- .renovaterc.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .renovaterc.json diff --git a/.renovaterc.json b/.renovaterc.json new file mode 100644 index 0000000..6ffb21f --- /dev/null +++ b/.renovaterc.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + "docker:enableMajor" + ], + "prConcurrentLimit": 5, + "semanticCommits": false, + "commitMessagePrefix": "automation:", + "commitMessageTopic": "{{depName}}", + "commitMessageExtra": "to {{#if isMajor}}version {{{newMajor}}}{{else}}{{#if isSingleVersion}}version {{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", + "regexManagers": [ + { + "fileMatch": ["defaults/main.yml$"], + "matchStrings": [ + "# renovate: depName=(?.*?)( versioning=(?.*?))?\\n(?\\S+?)(_(?\\S+?))?_version: \"?(?[^\"]*?)\"?\\s" + ], + "depNameTemplate": "{{#if softwareName}}{{{roleName}}}-{{{softwareName}}}{{else}}{{{roleName}}}{{/if}}", + "datasourceTemplate": "docker", + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}docker{{/if}}" + } + ], + "docker": { + "commitMessageTopic": "{{{depName}}}", + "commitMessageExtra": "to {{#if isMajor}}version {{{newMajor}}}{{else}}{{#if isSingleVersion}}version {{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}" + }, + "packageRules": [ + { + "packageNames": [ + "docker.io/cactus4docker/go-camo", + "docker.io/tootsuite/mastodon", + "docker.io/ldez/traefik-certs-dumper", + "docker.io/matrixdotorg/synapse" + ], + "extractVersion": "^v(?.*)$" + } + ] +}