-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
Copy pathrenovate.json
80 lines (80 loc) · 2.52 KB
/
renovate.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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver"
],
"dependencyDashboardApproval": true,
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"(^|/).+\\.(py|yaml)$"
],
"matchStrings": [
"\\s*#\\s?renovate: (?<datasource>.*?)=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+[\\w+\\.\\-]+(?:[:=]|\\s+\\S+)\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"datasourceTemplate": "{{#if (equals datasource 'github')}}github-tags{{else}}{{{datasource}}}{{/if}}",
"versioningTemplate": "{{#if (equals datasource 'docker')}}docker{{else if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"fileMatch": [
"(^|/).+\\.yaml$"
],
"matchStrings": [
"\\s*image:\\s+registry:\\s*[\\\"']?(?<registry>.*?)[\\\"']?\\s+(?:repository|name):\\s*[\\\"']?(?<repository>.*?)[\\\"']?\\s+tag:\\s*[\\\"']?(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": [
"(^|/).+\\.yaml$"
],
"matchStrings": [
"\\s*image:\\s+[\\\"']?(?<registry>.+\\..+?)\\/(?<repository>.*?):(?<currentValue>[\\w+\\.\\-]*)(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\\\"']?"
],
"depNameTemplate": "{{{ registry }}}/{{{ repository }}}",
"datasourceTemplate": "docker"
}
],
"packageRules": [
{
"enabled": false,
"matchPackageNames": [
"*"
]
},
{
"enabled": true,
"matchFileNames": [
".github/workflows/**"
],
"commitMessagePrefix": "[CI] ",
"groupName": "github-workflow dependency updates",
"matchPackageNames": [
"*"
]
},
{
"enabled": true,
"matchFileNames": [
"charts/kube-prometheus-stack/**"
],
"commitMessagePrefix": "[{{ lookup (split packageFileDir '/') 1 }}] ",
"groupName": "{{ lookup (split packageFileDir '/') 1 }} dependency non-major updates",
"separateMajorMinor": true,
"postUpdateOptions": [
"helmUpdateSubChartArchives"
],
"major": {
"groupName": "{{ lookup (split packageFileDir '/') 1 }} dependency major updates"
},
"matchPackageNames": [
"*"
]
}
]
}