-
Notifications
You must be signed in to change notification settings - Fork 70
/
renovate.json5
281 lines (281 loc) · 9.25 KB
/
renovate.json5
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
{
// JSON5 spec: https://json5.org/
// Renovate docs: https://docs.renovatebot.com/configuration-options/
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended", // Use recommended settings
":enablePreCommit", // Enable pre-commit hook updates
":gitSignOff", // Sign off commits
"helpers:pinGitHubActionDigests" // Pin GitHub action digests
],
"ignorePaths": [
".venv/**", // Ignore Python virtualenv (docs)
"docs/_build/**", // Ignore docs build directory
"test-e2e/.venv/**", // Ignore Python virtualenv (e2e tests)
"mover-restic/**" // Don't update mover-restic since we vendor it
],
"labels": ["dependencies"], // Add "dependencies" label to PRs
"lockFileMaintenance": {"enabled": true}, // Update Pipfile.lock
"packageRules": [
{
// Update golang tag in dockerfile & golang version in workflows in a
// single PR"
"groupName": "golang version",
"groupSlug": "golang",
"matchDepNames": [
"^(golang|go)$"
]
},
{
// Disable some docker image updates
"matchDatasources": ["docker"],
"matchPackageNames": [
"controller", // Ignore the fake "controller" docker image name
"quay.io/backube/volsync", // Don't pin our own image
"quay.io/operator-framework/scorecard-test" // Ignore OSDK scorecard image
],
"enabled": false
},
{
// This is an existing group, and we're adding a new package to it so that
// they all get upgraded together in a single PR
"groupName": "kubernetes packages",
"groupSlug": "kubernetes-go",
"matchDatasources": [
"go"
],
"matchPackagePrefixes": [
"k8s.io/component-helpers"
]
},
{
// Group diskrsync and spgz dependent library Docker and go updates
// together in a single PR
"groupName": "diskrsync packages",
"groupSlug": "diskrsync",
"matchPackagePatterns": [
// Using the "packagePatterns" option so that we can match both the go
// packages (w/o the "github.com/" prefix) and the other references that
// do have it.
"dop251/diskrsync",
"dop251/spgz"
]
},
{
// Ignore openshift/api updates since we don't have a way to automatically
// update from the release branches and they don't tag releases
"matchDatasources": ["go"],
"matchPackageNames": ["github.com/openshift/api"],
"enabled": false
},
{
// Group syncthing updates together in a single PR
"groupName": "syncthing packages",
"groupSlug": "syncthing",
"matchPackagePatterns": [
// Using the "packagePatterns" option so that we can match both the go
// packages (w/o the "github.com/" prefix) and the other references that
// do have it.
"syncthing/syncthing"
]
},
{
// Renovate's packages update too frequently, so we only schedule updates
// once a week to keep the noise down
"matchPackageNames": ["renovatebot/pre-commit-hooks"],
"schedule": ["before 9am on monday"],
"updateNotScheduled": false
}
],
"postUpdateOptions": [
"gomodTidy" // Run `go mod tidy` after updating dependencies
],
// Set max number of PRs. This is set high since we have many updates on /hold
"prConcurrentLimit": 50,
"customManagers": [
{
"customType": "regex",
"description": "controller-tools version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"CONTROLLER_TOOLS_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/controller-tools",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "golang version updates (major/minor only)",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"GO_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "golang",
"datasourceTemplate": "golang-version",
// Template discards the patch portion of the version number
"extractVersionTemplate": "^(?<version>.*)\\.\\d+$",
"versioningTemplate": "loose"
},
{
"customType": "regex",
"description": "golangci-lint version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"GOLANGCI_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "golangci/golangci-lint",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Helm version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"HELM_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "helm/helm",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Docker image updates in yamls",
"fileMatch": [
"^config/.+\\.ya?ml$"
],
"matchStrings": [
"image:\\s*\"?(?<depName>.*?):(?<currentValue>.*?)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?\\s"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "KinD version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"KIND_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/kind",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
"customType": "regex",
"description": "kubectl version updates",
"fileMatch": [
"(^|/)Makefile$"
],
"matchStrings": [
"KUBECTL_VERSION\\s*:=?\\s*\"?v(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes/kubectl",
"datasourceTemplate": "github-tags",
"extractVersionTemplate": "^kubernetes-(?<version>.*)$"
},
{
"customType": "regex",
"description": "kustomize version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"KUSTOMIZE_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/kustomize",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^kustomize/(?<version>.*)$"
},
{
"customType": "regex",
"description": "Pipenv version updates",
"fileMatch": [
"(^|/)Makefile$"
],
"matchStrings": [
"PIPENV_VERSION \\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "pipenv",
"datasourceTemplate": "pypi"
},
{
"customType": "regex",
"description": "yq version updates",
"fileMatch": [
"(^|/)Makefile$"
],
"matchStrings": [
"YQ_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "mikefarah/yq",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "RClone version updates in the Dockerfile",
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"RCLONE_VERSION\\s*=\\s*\"?(?<currentValue>.+?)\"?\\n.*RCLONE_GIT_HASH\\s*=\\s*\"?(?<currentDigest>.+?)\"?\\n"
],
"depNameTemplate": "rclone/rclone",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Syncthing version updates in the Dockerfile",
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"SYNCTHING_VERSION\\s*=\\s*\"?(?<currentValue>.+?)\"?\\n.*SYNCTHING_GIT_HASH\\s*=\\s*\"?(?<currentDigest>.+?)\"?\\n"
],
"depNameTemplate": "syncthing/syncthing",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "diskrsync version updates in the Dockerfile",
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"DISKRSYNC_VERSION\\s*=\\s*\"?(?<currentValue>.+?)\"?\\n.*DISKRSYNC_GIT_HASH\\s*=\\s*\"?(?<currentDigest>.+?)\"?\\n"
],
"depNameTemplate": "dop251/diskrsync",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Update tags for repos in hack/setup-kind-cluster.sh",
"fileMatch": [
"^hack/setup-kind-cluster.sh$"
],
"matchStrings": [
// This allows adding a comment to the above files to have renovate
// upgrade variables matching "TAG=..."
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+TAG\\s*=\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
"schedule": [
"* 3-6 * * 1-5" // Run between 3am and 6am on weekdays
],
"semanticCommits": "disabled",
"timezone": "America/New_York"
}