-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefault.json
More file actions
281 lines (281 loc) · 10.1 KB
/
default.json
File metadata and controls
281 lines (281 loc) · 10.1 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
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Default preset for our containerbase repositories.",
"extends": [
"config:best-practices",
":maintainLockFilesWeekly",
":semanticCommits",
":semanticCommitScope(deps)",
"docker:enableMajor",
"customManagers:tsconfigNodeVersions"
],
"assignees": ["viceice"],
"dependencyDashboard": true,
"separateMajorMinor": true,
"packageRules": [
{
"description": "Wait three days for npm packages to stabilize, except Renovate.",
"matchDatasources": ["npm"],
"matchPackageNames": [
"!renovate",
"!@renovatebot/*",
"!@containerbase/*"
],
"stabilityDays": 3
},
{
"description": "Group linter minor and patch updates",
"extends": ["packages:linters"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "linters"
},
{
"description": "Require Dependency Dashboard approval for major updates, except Renovate.",
"matchPackageNames": [
"!/^renovate(bot)?($|/)/",
"!/^(?:ghcr.io/)?containerbase//",
"!@renovatebot/**",
"!@containerbase/*",
"!ghcr.io/renovatebot/**"
],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
},
{
"description": "Require approval for @tsconfig/node replacements",
"matchDatasources": ["npm"],
"matchPackageNames": ["@tsconfig/node*"],
"matchUpdateTypes": ["replacement"],
"dependencyDashboardApproval": true
},
{
"description": "Do not require Dependency Dashboard approval for major GitHub Action updates.",
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": false
},
{
"description": "Automerge non-major updates.",
"matchUpdateTypes": ["minor", "patch", "digest", "lockFileMaintenance"],
"automerge": true
},
{
"description": "Automerge some major updates.",
"matchUpdateTypes": ["major"],
"matchPackageNames": ["@containerbase/*", "containerbase/internal-tools"],
"automerge": true
},
{
"description": "v prefix workaround for action updates.",
"matchDepTypes": ["action"],
"extractVersion": "^(?<version>v\\d+\\.\\d+\\.\\d+)$",
"versioning": "regex:^v(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$"
},
{
"description": "Group Prettier packages",
"matchPackageNames": ["prettier", "@prettier/**", "prettier-plugin-**"],
"groupName": "prettier packages"
},
{
"description": "Update references to Docker tags for renovate/renovate in Markdown files weekly.",
"matchPackageNames": [
"renovate/renovate",
"ghcr.io/renovatebot/renovate"
],
"matchPaths": ["**/*.md"],
"extends": ["schedule:weekly"],
"automerge": true,
"stabilityDays": 0,
"commitMessageTopic": "references to {{{depName}}}",
"semanticCommitType": "docs",
"semanticCommitScope": null,
"additionalBranchPrefix": "docs-"
},
{
"description": "Disable minor updates for Ubuntu.",
"matchDatasources": ["docker"],
"matchDepNames": [
"amd64/ubuntu",
"ubuntu",
"ghcr.io/containerbase/ubuntu"
],
"matchUpdateTypes": ["minor"],
"enabled": false
},
{
"description": "Group Renovate Buildpack and Ubuntu digest updates.",
"matchDatasources": ["docker"],
"matchUpdateTypes": ["digest"],
"matchDepNames": [
"ubuntu",
"containerbase/base",
"ghcr.io/containerbase/base",
"ghcr.io/containerbase/ubuntu"
],
"branchTopic": "{{{depNameSanitized}}}-digests",
"commitMessageTopic": "{{{depName}}} Docker digests"
},
{
"description": "Require approval for aws-sdk, as it updates too often.",
"matchDatasources": ["npm"],
"matchPackageNames": ["aws-sdk", "@aws-sdk/**"],
"dependencyDashboardApproval": true
},
{
"description": "Only patch updates on renovate rebuild trigger files.",
"matchFiles": ["renovate.Dockerfile"],
"separateMinorPatch": true
},
{
"description": "Use node versioning for containerbase node.",
"matchPackageNames": ["containerbase/node", "ghcr.io/containerbase/node"],
"versioning": "node"
},
{
"description": "Only patch updates on renovate rebuild trigger files.",
"matchFiles": ["renovate.Dockerfile"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
},
{
"description": "Trigger fix release for buildpack updates.",
"matchDatasources": ["docker"],
"matchPackageNames": ["containerbase/base", "ghcr.io/containerbase/base"],
"semanticCommitType": "fix"
},
{
"description": "Handle tag prefix in kustomize monorepo.",
"matchPackageNames": ["kubernetes-sigs/kustomize"],
"extractVersion": "^kustomize/v(?<version>.*)$"
},
{
"description": "Handle tag prefix in haskell cabal repo.",
"matchPackageNames": ["haskell/cabal"],
"extractVersion": "^cabal-install-v(?<version>.*)$",
"versioning": "docker"
},
{
"description": "Use `build` semantic commit scope for lockfile maintenance.",
"matchUpdateTypes": ["lockFileMaintenance"],
"semanticCommitType": "build"
},
{
"description": "Use `build` semantic commit scope for build deps.",
"matchDatasources": ["npm"],
"matchPackageNames": ["@yao-pkg/pkg", "esbuild"],
"semanticCommitType": "build"
},
{
"description": "Use `ci` semanctic type for some deps.",
"matchPaths": [".github/workflows/**", ".github/actions/**"],
"semanticCommitType": "ci",
"additionalBranchPrefix": "ci-"
},
{
"description": "Do not pin our dev Docker image digest.",
"matchFiles": [".devcontainer/Dockerfile"],
"matchPackageNames": [
"ghcr.io/containerbase/devcontainer",
"ghcr.io/containerbase/node"
],
"semanticCommitType": "chore",
"pinDigests": false
},
{
"description": "Do not pin digest for regex manager.",
"matchManagers": ["regex"],
"pinDigests": false
},
{
"description": "defer prebuild updates to wait for arm64 builds",
"matchPackageNames": ["/^containerbase/.+-prebuild$/"],
"minimumReleaseAge": "2h"
},
{
"description": "allow newer pnpm and don't require approval",
"matchPackageNames": ["pnpm"],
"respectLatest": false,
"dependencyDashboardApproval": false
},
{
"description": "allow unstable arm github runner upgrades",
"matchDatasources": ["github-runners"],
"matchCurrentValue": "/-arm$/",
"ignoreUnstable": false
},
{
"description": "separate multiple major for node",
"matchDepNames": ["node", "**/node"],
"separateMultipleMajor": true
},
{
"description": "set branch prefix for node major updates to split from minor updates",
"matchPackageNames": ["node", "**/node"],
"matchUpdateTypes": ["major"],
"additionalBranchPrefix": "major"
},
{
"description": "split node types to separate pr",
"matchPackageNames": ["@types/node"],
"matchUpdateTypes": ["major"],
"additionalBranchPrefix": "major-types"
},
{
"description": "widen node engines",
"matchPackageNames": ["node"],
"matchDepTypes": ["engines"],
"rangeStrategy": "widen"
}
],
"regexManagers": [
{
"description": "Update Renovate references in Markdown files.",
"fileMatch": ["\\.md$"],
"matchStrings": [
"(?<depName>renovate/renovate):(?<currentValue>[a-z0-9.-]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"description": "Update _VERSION variables in Dockerfiles.",
"fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update install-* Buildpack commands in Dockerfiles.",
"fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\sRUN install-[a-z]+? (?<depName>[a-z-]+?) (?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update _VERSION variables in Shell and .bats scripts.",
"fileMatch": ["\\.sh$", "\\.bats$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s+[A-Z_]+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"description": "Update `version:` and `_VERSION:` variables in GitHub workflow files.",
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"],
"matchStrings": [
"\\s+version: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s",
"\\s*[A-Z_]+?_VERSION: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s"
]
},
{
"description": "Update `os:` matrix runner variables in GitHub workflow files.",
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"],
"matchStrings": [
"\\s+os: (?<depName>[a-z-]+?)-(?<currentValue>[a-z0-9.-]+?)\\s"
],
"datasourceTemplate": "github-runners"
}
]
}