-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json5
69 lines (63 loc) · 2.05 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:best-practices',
':semanticCommitTypeAll(fix)',
'github>secustor/backstage-renovate-config',
],
// add a Renovate label for renovate-changesets workflow
addLabels: ['renovate'],
// ignore author of changesets
gitIgnoredAuthors: ['[email protected]'],
packageRules: [
{
// general configs for all plugins
matchFileNames: ['plugins/**'],
// only update if the new version falls outside the range.
// Normally we would use update-lockfile, tough we use lockfile maintenance to save CI minutes
rangeStrategy: 'replace',
},
// activate unpublish safeguard for npm packages except Renovate, so that docker and npm references are in sync
{
matchDatasources: ['npm'],
matchDepNames: ['!renovate'],
minimumReleaseAge: '3 days',
},
// auto merges
{
// auto merge @types npm packages, if CI is successful
matchPackageNames: ['/^@types//'],
matchManagers: ['npm'],
automerge: true,
},
{
// auto merge devDependencies in package.json files, as we expect unit tests to fail for them if they break
matchDepTypes: ['devDependencies'],
matchManagers: ['npm'],
automerge: true,
},
{
// do not try to pin Docker and regex references as they are not published or tested
matchManagers: ['regex', 'docker-compose', 'dockerfile'],
pinDigests: false,
},
],
customManagers: [
{
// updating renovate defaults
customType: 'regex',
fileMatch: '^plugins/renovate-backend-module-runtime-docker/.*',
matchStrings: [
// README defaults
'tag:\\s+latest\\s+#\\s*default:\\s*(?<currentValue>\\S+)',
// runtime.ts
"imageTag\\s*=\\s*'(?<currentValue>\\S*?)'",
// config.d.ts
"Default:\\s*'(?<currentValue>[\\.\\d]*?)'",
],
depNameTemplate: 'renovate',
packageNameTemplate: 'ghcr.io/renovatebot/renovate',
datasourceTemplate: 'docker',
},
],
}