-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.json
216 lines (216 loc) · 8.07 KB
/
default.json
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Default preset for our containerbase repositories.",
"extends": [
"config:recommended",
":maintainLockFilesWeekly",
":semanticCommits",
":semanticCommitScope(deps)",
"docker:enableMajor",
"docker:pinDigests",
"helpers:pinGitHubActionDigests"
],
"assignees": ["viceice"],
"dependencyDashboard": true,
"separateMajorMinor": true,
"postUpdateOptions": ["yarnDedupeHighest"],
"packageRules": [
{
"description": "Wait three days for npm packages to stabilize, except Renovate.",
"matchDatasources": ["npm"],
"excludePackageNames": ["renovate"],
"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.",
"excludePackagePatterns": [
"^renovate(bot)?($|/)",
"^(?:ghcr.io/)?containerbase/base$",
"^@renovatebot/"
],
"matchUpdateTypes": ["major"],
"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": "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": "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", ".gitpod/Dockerfile"],
"matchPackageNames": [
"ghcr.io/containerbase/devcontainer",
"ghcr.io/containerbase/gitpod",
"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"
}
],
"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"
]
}
]
}