-
Notifications
You must be signed in to change notification settings - Fork 6
/
default.json
174 lines (174 loc) · 6.75 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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Default preset for use with Renovate's repos",
"extends": [
"config:base",
":maintainLockFilesWeekly",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"docker:enableMajor",
"docker:pinDigests",
"group:linters",
"helpers:pinGitHubActionDigests"
],
"assignees": ["rarkins", "viceice"],
"automergeType": "branch",
"configMigration": true,
"dependencyDashboard": true,
"prCreation": "not-pending",
"rebaseWhen": "behind-base-branch",
"platformAutomerge": true,
"internalChecksFilter": "strict",
"packageRules": [
{
"description": "Require dashboard approval for major updates except Renovate",
"excludePackagePatterns": [
"^renovate(bot)?($|/)",
"^(renovate|(?:ghcr.io\\/)?containerbase)\\/buildpack$",
"^@renovatebot\\/"
],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
},
{
"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"],
"matchPackagePatterns": ["^@prettier\\/", "^prettier-plugin-"],
"groupName": "prettier packages"
},
{
"description": "Update references to Docker tags for renovate/renovate in Markdown files weekly",
"matchPackageNames": ["renovate/renovate"],
"matchPaths": ["**/*.md"],
"extends": ["schedule:weekly"],
"automerge": true,
"stabilityDays": 0,
"separateMajorMinor": false,
"commitMessageTopic": "references to {{{depName}}}",
"semanticCommitType": "docs",
"semanticCommitScope": null,
"additionalBranchPrefix": "docs-"
},
{
"description": "Disable Ubuntu minor updates",
"matchDatasources": ["docker"],
"matchPackageNames": ["amd64/ubuntu", "ubuntu"],
"matchUpdateTypes": ["minor"],
"enabled": false
},
{
"description": "Group Renovate Buildpack and Ubuntu digest updates with themselves",
"matchDatasources": ["docker"],
"matchUpdateTypes": ["digest"],
"matchPackageNames": [
"ubuntu",
"renovate/ubuntu",
"renovate/buildpack",
"containerbase/buildpack",
"ghcr.io/containerbase/buildpack"
],
"branchTopic": "{{{depNameSanitized}}}-digests",
"commitMessageTopic": "{{{depName}}} Docker digests"
},
{
"description": "One week stability period for npm packages except Renovate",
"matchDatasources": ["npm"],
"excludePackageNames": ["renovate"],
"excludePackagePrefixes": ["@renovatebot/"],
"stabilityDays": 7
},
{
"description": "Require approval for aws-sdk as it updates too often",
"matchDatasources": ["npm"],
"matchPackageNames": ["aws-sdk"],
"matchPackagePatterns": ["^@aws-sdk\\/"],
"dependencyDashboardApproval": true
},
{
"description": "Only patch updates on renovate rebuild trigger files",
"matchFiles": ["renovate.Dockerfile"],
"separateMinorPatch": true
},
{
"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/buildpack",
"ghcr.io/containerbase/buildpack",
"renovate/buildpack"
],
"semanticCommitType": "fix"
}
],
"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 Github Action references in the Markdown files",
"fileMatch": ["\\.md$"],
"matchStrings": [
"\\suses: (?<depName>[\\w-]+\\/[\\w-]+)(?<path>\\/.*)?@(?<currentValue>v\\d+\\.\\d+\\.\\d+)",
"\\suses: (?<depName>[\\w-]+\\/[\\w-]+)(?<path>\\/.*)?@(?<currentDigest>[a-z0-9]{40}|[a-z0-9]{64}) # tag=(?<currentValue>v\\d+\\.\\d+\\.\\d+)"
],
"datasourceTemplate": "github-tags",
"versioningTemplate": "semver"
},
{
"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 scripts",
"fileMatch": ["\\.sh$"],
"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 workflows",
"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"
]
}
]
}