-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate.json5
125 lines (125 loc) · 4.52 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:best-practices',
':disableRateLimiting',
],
baseBranches: [
// don't run on renovate branches
'$default',
// See https://docs.renovatebot.com/configuration-options/#basebranches
// baseBranches supports Regular Expressions that must begin and end with /
], //See also possible support for multiple base branches, one per K8S minor version https://docs.renovatebot.com/configuration-options/#basebranches
packageRules: [
{
description: '@JCL38-ORANGE assignments',
matchPackagePatterns: [
'*'
],
assignees: [
'JCL38-ORANGE'
]
},
{
description: 'Add common labels',
matchDepNames: ['*'],
addLabels: [
// See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields
'datasource/{{datasource}}',
'depName/{{depNameSanitized}}',
'manager/{{manager}}',
]
},
{
description: 'Auto-merge patch releases, e.g. from 1.25.1 to 1.25.2',
matchPackageNames: [
'golang',
],
//see https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates
matchUpdateTypes: [
'patch',
'minor',
],
matchCurrentVersion: '!/-rc/',
automerge: true,
//see https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests
ignoreTests: true,
}
],
customManagers: [
{
customType: 'regex',
description: 'XK6_MONGO version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_MONGO_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'GhMartingit/xk6-mongo',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
description: 'XK6_SQL_DRIVER_POSTGRES version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_SQL_DRIVER_POSTGRES_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'grafana/xk6-sql-driver-postgres',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$'
},
{
description: 'XK6_SQL_DRIVER_MYSQL version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_SQL_DRIVER_MYSQL_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'grafana/xk6-sql-driver-mysql',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$'
},
{
description: 'XK6_SQL version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_SQL_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'grafana/xk6-sql',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$'
},
{
description: 'XK6_LOKI version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_LOKI_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'grafana/xk6-loki',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$'
},
{
description: 'XK6_BUILDER version in DockerFile',
fileMatch: ['Dockerfile$'],
matchStrings: [
'ENV XK6_BUILDER_VERSION=\"(?<currentValue>.*)\"'
],
depNameTemplate: 'grafana/xk6',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$'
}
],
// customManagers: [
// {
// customType: 'regex',
// fileMatch: ["Dockerfile$"],
// "matchStrings": [
// // For dockerfile: https://regex101.com/r/iJfnnL/1
// "datasource=(?<datasource>github-releases) depName=(?<depName>[\\w\\d\\//\\-\\_]+)\\nENV .+_VERSION[\\s*|=]??\\\"?(?<currentValue>[\\w\\d\\/\\-\\.\\_]+)\\\"?\\s*",
// ],
// // datasourceTemplate: "{{datasource}}", // should not be required as we extract datasource
// versioningTemplate: "regex:(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$",
// extractVersionTemplate: "^v?(?<version>.*)$"
// }
// ]
}