-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathrenovate.json
More file actions
148 lines (148 loc) · 5.25 KB
/
renovate.json
File metadata and controls
148 lines (148 loc) · 5.25 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver"
],
"schedule": [
"* * * * 5"
],
"suppressNotifications": ["prEditedNotification"],
"dependencyDashboardApproval": false,
"labels": ["dependencies"],
"rebaseWhen": "behind-base-branch",
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/).+\\.(py|yaml)$/"
],
"matchStrings": [
"[\\t ]*(?:#|//) ?renovate: (?<datasource>git-refs)=(?<depName>\\S+)(?: branch=(?<currentValue>\\S+))?[\\t ]*\\r?\\n.+?[:=][\\t ]*[\"']?(?<currentDigest>[a-f0-9]+)[\"']?",
"[\\t ]*(?:#|//) ?renovate: (?<datasource>[^=]+)=(?<depName>\\S+)(?: registry=(?<registryUrl>\\S+))?(?: versioning=(?<versioning>\\S+))?[\\t ]*\\r?\\n.+?[:=][\\t ]*[\"']?(?<currentValue>[^@\\s\"'=]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\"']?"
],
"currentValueTemplate": "{{#if currentValue}}{{{currentValue}}}{{else if (equals datasource 'git-refs')}}main{{/if}}",
"datasourceTemplate": "{{#if (equals datasource 'github')}}github-tags{{else}}{{{datasource}}}{{/if}}",
"versioningTemplate": "{{#if (equals datasource 'docker')}}docker{{else if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/).+\\.yaml$/"
],
"matchStrings": [
"[\\t ]*image:\\s+registry:\\s*[\\\"']?(?<registry>\\S+\\.\\S+?)[\\\"']?[\\t ]*\\r?\\n[\\t ]*(?:repository|name):\\s*[\\\"']?(?<repository>.*?)[\\\"']?[\\t ]*\\r?\\n[\\t ]*tag:\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/).+\\.yaml$/"
],
"matchStrings": [
"[\\t ]*image:\\s+[\\\"']?(?<registry>\\S+\\.\\S+?)\\/(?<repository>.*?):(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
"datasourceTemplate": "docker"
}
],
"packageRules": [
{
"enabled": false,
"matchPackageNames": [
"*"
]
},
{
"enabled": true,
"matchFileNames": [
".github/workflows/**"
],
"commitMessagePrefix": "[CI] ",
"groupName": "github-workflow dependency updates",
"matchPackageNames": [
"*"
],
"schedule": null,
"labels": ["dependencies", "dependencies/auto-merge"]
},
{
"enabled": true,
"matchFileNames": [
"charts/**"
],
"commitMessagePrefix": "[{{ lookup (split packageFileDir '/') 1 }}] ",
"groupName": "{{ lookup (split packageFileDir '/') 1 }} dependency non-major updates",
"separateMajorMinor": true,
"postUpdateOptions": [
"helmUpdateSubChartArchives"
],
"schedule": null,
"labels": ["dependencies", "dependencies/auto-merge"],
"major": {
"description": "Exclude major version bumps from auto merge.",
"labels": ["dependencies"],
"groupName": "{{ lookup (split packageFileDir '/') 1 }} dependency major updates"
},
"matchPackageNames": [
"*"
],
"bumpVersions": [
{
"name": "Updating Chart version",
"filePatterns": ["/^({{#each (distinct (lookupArray upgrades \"packageFileDir\"))}}{{{lookup (split . \"/\") 0}}}/{{{lookup (split . \"/\") 1}}}{{#unless @last}}|{{/unless}}{{/each}})/Chart\\.ya?ml$/"],
"matchStrings": ["(?:^|\\n)version:\\s\"?(?<version>\\d+\\.\\d+\\.\\d+)\"?(?:$|\\n)"],
"bumpType": "{{#if (or isPinDigest isPatch)}}patch{{else}}minor{{/if}}"
}
]
},
{
"matchDatasources": [
"git-refs"
],
"schedule": [
"* 14-17 * * 2,5"
]
},
{
"description": "Prometheus Operator minor updates should result in a major bump of the chart version.",
"enabled": true,
"matchFileNames": [
"charts/prometheus-operator-crds/**"
],
"matchPackageNames": [
"prometheus-operator/prometheus-operator"
],
"bumpVersions": [
{
"name": "Updating Chart version",
"filePatterns": ["/^({{#each (distinct (lookupArray upgrades \"packageFileDir\"))}}{{{lookup (split . \"/\") 0}}}/{{{lookup (split . \"/\") 1}}}{{#unless @last}}|{{/unless}}{{/each}})/Chart\\.ya?ml$/"],
"matchStrings": ["(?:^|\\n)version:\\s\"?(?<version>\\d+\\.\\d+\\.\\d+)\"?(?:$|\\n)"],
"bumpType": "{{#if (or isPinDigest isPatch)}}patch{{else}}major{{/if}}"
}
]
},
{
"description": "disable prometheus-operator major and minor updates for charts/kube-prometheus-stack",
"enabled": false,
"matchFileNames": [
"charts/kube-prometheus-stack/**"
],
"matchPackageNames": [
"prometheus-operator/prometheus-operator"
],
"matchUpdateTypes": [
"major", "minor"
]
},
{
"matchPackageNames": ["actions/python-versions", "python"],
"matchDepTypes": [
"uses-with"
],
"allowedVersions": "<=3.13"
}
]
}