-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrenovate.json
99 lines (99 loc) · 3.02 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"dependencyDashboard": true,
"dependencyDashboardLabels": [
"deps"
],
"labels": [
"deps"
],
"timezone": "Europe/Berlin",
"schedule": [
"* 18-21 * * 5"
],
"major": {
"dependencyDashboardApproval": true
},
"rangeStrategy": "pin",
"ignorePaths": [
"gen/**"
],
"packageRules": [
{
"groupName": "all non-major {{manager}} dependencies",
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"groupName": "all major {{manager}} dependencies",
"matchUpdateTypes": [
"major"
]
},
{
"matchDatasources": ["github-releases"],
"extractVersion": "^v?(?<version>.*)$"
}
],
"ignoreDeps": ["common", "decayinglru", "hwdb", "hwes", "hwutil", "hwlocale", "telemetry", "gen", "hooks", "hwtesting", "postgres"],
"customDatasources": {
"buf": {
"defaultRegistryUrlTemplate": "https://buf-resource-proxy.fly.dev/{{packageName}}",
"transformTemplates": ["{\"releases\":[{\"version\": resource.plugin.version }], \"sourceUrl\": resource.plugin.sourceUrl, \"homepage\": $join([\"https://buf.build/\", resource.plugin.owner, \"/\", resource.plugin.name])}"]
}
},
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^.*Dockerfile(\\.[\\w_-]+)?$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s(ENV|ARG) .*?_VERSION=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"fileMatch": ["(^|/)(\\.github/(?:workflows|actions))/.+\\.ya?ml$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?_VERSION: '?(?<currentValue>[0-9A-Za-z.-]+)'?\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"fileMatch": ["dev/docker-compose.yaml", "images/dev-go/update-dev-tag.sh", ".github/workflows/cicd.yaml"],
"matchStrings": [
"# renovate: dev-tag\\s+TAG='(?<currentValue>[0-9A-Za-z.-]+)'\\s",
"# renovate: dev-tag\\s+TAG: '?(?<currentValue>[0-9A-Za-z.-]+)'?\\s",
"# renovate: dev-tag\\s+DEV_TAG: '?(?<currentValue>[0-9A-Za-z.-]+)'?\\s"
],
"depNameTemplate": "ghcr.io/helpwave/dev-go",
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": [
"go.mod$"
],
"matchStrings": [
"\\sgo (?<currentValue>.+?)\\s"
],
"depNameTemplate": "golang",
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["buf.gen.yaml$"],
"matchStrings": [
"plugin: buf.build/(?<depName>.*?):(?<currentValue>.+?)\\s"
],
"datasourceTemplate": "custom.buf",
"versioningTemplate": "semver"
}
]
}