diff --git a/.forgejo/renovate.json b/.forgejo/renovate.json deleted file mode 100644 index 8077f0b..0000000 --- a/.forgejo/renovate.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base", - "config:recommended" - ], - "regexManagers": [ - { - "datasourceTemplate": "docker", - "fileMatch": [ - "(^|/)Chart\\.yaml$" - ], - "matchStrings": [ - "#\\s*renovate: image=(?.*?)\\s+appVersion:\\s*[\"']?(?[\\w+\\.\\-]*)" - ] - }, - { - "fileMatch": [ - "(^|/)mautrix-synapse/Chart\\.yaml$" - ], - "matchStrings": [ - "appVersion:\\s+\"(?v[a-z0-9.-]+)\"" - ], - "depNameTemplate": "dock.mau.dev/mautrix/signal", - "datasourceTemplate": "docker", - "versioningTemplate": "docker" - } - ] -} diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 0000000..a01216b --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,47 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + "config:recommended" + ], + "regexManagers": [ + { + // Match and update Docker image and appVersion in Chart.yaml + "datasourceTemplate": "docker", + "fileMatch": [ + "(^|/)Chart\\.yaml$" + ], + "matchStrings": [ + "#\\s*renovate: image=(?.*?)\\s+appVersion:\\s*[\"']?(?[\\w+\\.\\-]*)" + ] + }, + { + // Match and bump chart version when appVersion changes + "fileMatch": [ + "(^|/)Chart\\.yaml$" + ], + "matchStrings": [ + "appVersion:\\s*[\"']?(?[\\w+\\.\\-]*)", + "version:\\s*[\"']?(?[\\w+\\.\\-]*)" + ], + "datasourceTemplate": "regex", + "depNameTemplate": "chart-version-update", + "versioningTemplate": "semver", + "updateStrategy": "bump" + } + ], + "packageRules": [ + { + // Group chart version and appVersion updates together + "matchPackageNames": ["chart-version-update"], + "groupName": "Chart and AppVersion Updates", + "bumpVersion": true + } + ], + "helmv3": { + "enabled": true + }, + "rangeStrategy": "bump", + "timezone": "UTC", + "schedule": ["before 5am on Monday"] +}