forked from david--wright/zarf-package-software-factory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate.json5
306 lines (306 loc) · 11.4 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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
{
"extends": [
"config:base"
],
"labels": [
"renovate"
],
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"prBodyNotes": [
"- :warning: The E2E tests need to be run, they have a manual trigger. To start them add a comment to this PR that says `/test all`",
"{{#if (containsString depType 'zarfcomponents')}}- :warning: Please ensure the images are also updated in `zarf.yaml`. Hint: Try using `zarf prepare find-images`. Right now this process is manual (add commits to this branch), but we intend to automate it later.{{/if}}",
"{{#if (containsString depType 'bigbang')}}- :warning: Please ensure the git repos that Big Bang depends on are also updated in `zarf.yaml`. You can find them by going to [values.yaml](https://repo1.dso.mil/platform-one/big-bang/bigbang/-/blob/{{newVersion}}/chart/values.yaml) in the Big Bang repo in the `<subrepo>.git.tag` parameter for each repo. Right now this process is manual (add commits to this branch), but we intend to automate it later.{{/if}}",
"{{#if (containsString depType 'bigbang')}}- :warning: The vendor folder also needs to be updated. Renovate did not do it automatically. Run `make vendor-big-bang-base` and commit+push any changes.{{/if}}",
"{{#if (containsString depType 'buildharness-deps')}}- :warning: The Build Harness image needs to be manually released after this PR is merged. Run [this GitHub Action](https://github.com/defenseunicorns/zarf-package-software-factory/actions/workflows/build-build-harness.yml) to kick it off. We intend to make this more automated at some point.{{/if}}"
],
"pre-commit": {
"enabled": true
},
"packageRules": [
{
"matchPackagePrefixes": [
"https://togithub.com/renovatebot/pre-commit-hooks",
"https://github.com/renovatebot/pre-commit-hooks"
],
"schedule": [
"before 2am"
]
}
],
"regexManagers": [
// Big Bang version
{
"fileMatch": [
"zarf\\.yaml",
"^Makefile$"
],
"matchStrings": [
"https:\/\/repo1\\.dso\\.mil\/platform-one\/big-bang\/bigbang\\.git@(?<currentValue>\\S+)",
"https:\/\/repo1\\.dso\\.mil\/platform-one\/big-bang\/bigbang\\.git\/\/base\/flux\\?ref=(?<currentValue>\\S+)",
"BIGBANG_VERSION := (?<currentValue>\\S+)"
],
"depNameTemplate": "https://repo1.dso.mil/platform-one/big-bang/bigbang.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents-bigbang"
},
// Postgres Operator version
{
"fileMatch": [
".*\\.yaml"
],
"matchStrings": [
"https:\/\/github\\.com\/zalando\/postgres-operator\\.git@(?<currentValue>\\S+)",
"url: http:\/\/zarf-gitea-http\\.zarf\\.svc\\.cluster\\.local:3000\/zarf-git-user\/mirror__github\\.com__zalando__postgres-operator\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/zalando/postgres-operator.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents"
},
// Jira version
{
"fileMatch": [
".*\\.yaml"
],
"matchStrings": [
"https:\/\/repo1\\.dso\\.mil\/platform-one\/big-bang\/apps\/third-party\/jira\\.git@(?<currentValue>\\S+)",
"url: http:\/\/zarf-gitea-http\\.zarf\\.svc\\.cluster\\.local:3000\/zarf-git-user\/mirror__repo1\\.dso\\.mil__platform-one__big-bang__apps__third-party__jira\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)"
],
"depNameTemplate": "https://repo1.dso.mil/platform-one/big-bang/apps/third-party/jira.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents",
"versioningTemplate": "regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-bb.(?<build>\\d+)$"
},
// Confluence version
{
"fileMatch": [
".*\\.yaml"
],
"matchStrings": [
"https:\/\/repo1\\.dso\\.mil\/platform-one\/big-bang\/apps\/third-party\/confluence\\.git@(?<currentValue>\\S+)",
"url: http:\/\/zarf-gitea-http\\.zarf\\.svc\\.cluster\\.local:3000\/zarf-git-user\/mirror__repo1\\.dso\\.mil__platform-one__big-bang__apps__third-party__confluence\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)"
],
"depNameTemplate": "https://repo1.dso.mil/platform-one/big-bang/apps/third-party/confluence.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents",
"versioningTemplate": "regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-bb.(?<build>\\d+)$"
},
// Artifactory version
{
"fileMatch": [
".*\\.yaml"
],
"matchStrings": [
"https:\/\/repo1\\.dso\\.mil\/platform-one\/big-bang\/apps\/third-party\/artifactory\\.git@(?<currentValue>\\S+)",
"url: http:\/\/zarf-gitea-http\\.zarf\\.svc\\.cluster\\.local:3000\/zarf-git-user\/mirror__repo1\\.dso\\.mil__platform-one__big-bang__apps__third-party__artifactory\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)"
],
"depNameTemplate": "https://repo1.dso.mil/platform-one/big-bang/apps/third-party/artifactory.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents",
"versioningTemplate": "regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-bb.(?<build>\\d+)$"
},
// Jenkins version
{
"fileMatch": [
".*\\.yaml",
],
"matchStrings": [
"https:\/\/github\\.com\/jenkinsci\/helm-charts\\.git@jenkins-(?<currentValue>\\S+)",
"url: https:\/\/github\\.com\/jenkinsci\/helm-charts\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)",
"url: http:\/\/zarf-gitea-http\\.zarf\\.svc\\.cluster\\.local:3000\/zarf-git-user\/mirror__github.com__jenkinsci__helm-charts\\.git\\s+ref:\\s+tag:\\s+(?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/jenkinsci/helm-charts.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfcomponents",
"extractVersionTemplate": "^jenkins-(?<version>.*)$"
},
// Zarf version
{
"fileMatch": [
".*\\.yaml",
"^Makefile$"
],
"matchStrings": [
"https:\/\/raw\\.githubusercontent\\.com\/defenseunicorns\/zarf\/(?<currentValue>\\S+)\/zarf\\.schema\\.json",
"ZARF_VERSION := (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/defenseunicorns/zarf.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "zarfbin"
},
// Build Harness version
{
"fileMatch": [
"^Makefile$"
],
"matchStrings": [
"BUILD_HARNESS_VERSION := (?<currentValue>\\S+)"
],
"depNameTemplate": "ghcr.io/defenseunicorns/zarf-package-software-factory/build-harness",
"datasourceTemplate": "docker",
"depTypeTemplate": "buildharness"
},
// ASDF version
{
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"ARG ASDF_VERSION=\"(?<currentValue>\\S+)\""
],
"depNameTemplate": "https://github.com/asdf-vm/asdf.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// Golang version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG GOLANG_VERSION=\"(?<currentValue>\\S+)\"",
"golang (?<currentValue>\\S+)"
],
"depNameTemplate": "golang",
"datasourceTemplate": "golang-version",
"depTypeTemplate": "buildharness-deps"
},
// golangci-lint version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG GOLANGCILINT_VERSION=\"(?<currentValue>\\S+)\"",
"golangci-lint (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/golangci/golangci-lint.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// python version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG PYTHON_VERSION=\"(?<currentValue>\\S+)\"",
"python (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/python/cpython.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// hadolint version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG HADOLINT_VERSION=\"(?<currentValue>\\S+)\"",
"hadolint (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/hadolint/hadolint.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// pre-commit version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG PRE_COMMIT_VERSION=\"(?<currentValue>\\S+)\"",
"pre-commit (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/pre-commit/pre-commit.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// terraform version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG TERRAFORM_VERSION=\"(?<currentValue>\\S+)\"",
"terraform (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/hashicorp/terraform.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// tflint version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG TFLINT_VERSION=\"(?<currentValue>\\S+)\"",
"tflint (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/terraform-linters/tflint.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// tfsec version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG TFSEC_VERSION=\"(?<currentValue>\\S+)\"",
"tfsec (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/aquasecurity/tfsec.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// sops version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG SOPS_VERSION=\"(?<currentValue>\\S+)\"",
"sops (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/mozilla/sops.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"extractVersionTemplate": "^v(?<version>.*)$"
},
// make version
{
"fileMatch": [
"^Dockerfile$",
"^\\.tool-versions$"
],
"matchStrings": [
"ARG MAKE_VERSION=\"(?<currentValue>\\S+)\"",
"make (?<currentValue>\\S+)"
],
"depNameTemplate": "https://github.com/mirror/make.git",
"datasourceTemplate": "git-tags",
"depTypeTemplate": "buildharness-deps",
"versioningTemplate": "loose"
}
]
}