-
Notifications
You must be signed in to change notification settings - Fork 2
/
renovate.config.js
98 lines (95 loc) · 2.86 KB
/
renovate.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
module.exports = (config = {}) => {
const isSelfHosted = process.env.RENOVATE_SELF_HOSTED === "true";
if (!isSelfHosted) {
console.log("Renovate is disabled when running via GitHub App.");
return {
enabled: false,
onboarding: false,
};
}
console.log("Renovate is running in self-hosted mode.");
return {
$schema: "https://docs.renovatebot.com/renovate-schema.json",
onboarding: false,
requireConfig: false,
allowedPostUpgradeCommands: ["scripts/bump-chart-version.sh"],
prHourlyLimit: 20,
prConcurrentLimit: 20,
recreateWhen: "always",
customManagers: [
{
customType: "regex",
datasourceTemplate: "docker",
fileMatch: ["(^|/)Chart\\.yaml$"],
matchStrings: [
'#\\s*renovate: image=(?<imageName>.*?)\\s+appVersion:\\s*[\"]?(?<currentValue>[\\w+\\.\\-]*)',
],
depNameTemplate: "docker.io/{{{imageName}}}",
},
],
packageRules: [
{
description:
"Always bump chart version by a patch when updating values files.",
matchManagers: ["helm-values", "regex"],
postUpgradeTasks: {
commands: ["scripts/bump-chart-version.sh '{{{parentDir}}}'"],
fileFilters: ["**/Chart.yaml", "**/README.md"],
executionMode: "branch",
},
},
{
matchManagers: ["helm-values", "regex"],
groupName: "{{{parentDir}}}: {{{depName}}} Updates",
labels: ["dependencies", "helm"],
separateMinorPatch: true,
separateMajorMinor: true,
},
{
matchManagers: ["helm-values", "regex"],
matchUpdateTypes: ["patch", "minor"],
automerge: true,
automergeType: "pr",
labels: ["dependencies", "helm"],
},
{
matchManagers: ["helm-values", "regex"],
matchUpdateTypes: ["major"],
automerge: false,
labels: ["dependencies", "helm"],
},
{
description: "Do not automerge updates for kubo in helm-values",
matchManagers: ["helm-values"],
matchDepNames: ["docker.io/ipfs/kubo"],
matchUpdateTypes: ["minor", "patch"],
automerge: false,
labels: ["dependencies", "helm"],
},
{
matchManagers: ["helmv3"],
bumpVersion: "patch",
},
{
matchManagers: ["helmv3"],
matchUpdateTypes: ["patch", "minor"],
automerge: true,
automergeType: "pr",
labels: ["dependencies", "helm"],
},
{
matchManagers: ["helmv3"],
matchUpdateTypes: ["major"],
automerge: false,
labels: ["dependencies", "helm"],
},
{
matchManagers: ["github-actions"],
groupName: "{{{depName}}} GitHub Action Updates",
separateMajorMinor: true,
labels: ["dependencies", "github-actions"],
automerge: false,
},
],
};
};