diff options
author | Michael Kriese <michael.kriese@visualon.de> | 2024-03-25 10:31:15 +0100 |
---|---|---|
committer | Michael Kriese <michael.kriese@visualon.de> | 2024-03-25 10:34:01 +0100 |
commit | 8ce7de56773ebe55176a837bce7edb39816825dd (patch) | |
tree | 6241da747e3f7267e279dc09c5a41eefe4c367cf /renovate.json | |
parent | Merge pull request 'Fix typo in translation' (#2768) from forgejo-tr-typo int... (diff) | |
download | forgejo-8ce7de56773ebe55176a837bce7edb39816825dd.tar.xz forgejo-8ce7de56773ebe55176a837bce7edb39816825dd.zip |
Add renovate
Diffstat (limited to 'renovate.json')
-rw-r--r-- | renovate.json | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..74d468e6c0 --- /dev/null +++ b/renovate.json @@ -0,0 +1,49 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:best-practices", ":approveMajorUpdates"], + "ignorePresets": [":semanticPrefixFixDepsChoreOthers"], + "semanticCommits": "disabled", + "packageRules": [ + { + "description": "Require approval for go and python minor version", + "matchDepNames": ["go", "python"], + "matchUpdateTypes": ["minor"], + "dependencyDashboardApproval": true + }, + { + "description": "Automerge renovate updates", + "matchDatasources": ["docker"], + "matchPackageNames": ["ghcr.io/visualon/renovate"], + "matchUpdateTypes": ["minor", "patch", "digest"], + "automerge": true + }, + { + "description": "Update renovate only daily", + "matchDatasources": ["docker"], + "matchDepNames": ["ghcr.io/visualon/renovate"], + "extends": ["schedule:daily"] + } + ], + "customManagers": [ + { + "description": "Update docker images in forgejo workflows", + "customType": "regex", + "fileMatch": ["^.forgejo/workflows/.+\\.yml$"], + "matchStrings": [ + "\\s+image:\\s+['\"]?(?<depName>.+?):(?<currentValue>.+?)['\"]?\\s" + ], + "datasourceTemplate": "docker" + }, + { + "description": "Update go-version in forgejo workflows", + "customType": "regex", + "fileMatch": ["^.forgejo/workflows/.+\\.yml$"], + "matchStrings": [ + "\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s" + ], + "depNameTemplate": "go", + "datasourceTemplate": "golang-version", + "versioningTemplate": "go-mod-directive" + } + ] +} |