-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json
51 lines (51 loc) · 1.82 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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"security:openssf-scorecard"
],
"osvVulnerabilityAlerts": true,
"dependencyDashboardOSVVulnerabilitySummary": "all",
"addLabels": ["renovate","{{{manager}}}"],
"packageRules": [
{
"description": "Replace Dockerhub with ghcr.io for renovate",
"matchDatasources": ["docker"],
"matchPackageNames": ["docker.io/renovate/renovate"],
"replacementName": "ghcr.io/renovatebot/renovate"
}
],
"customDatasources": {
"grafana-dashboards": {
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}",
"format": "json",
"transformTemplates": [
"{\"releases\":[{\"version\": $string(revision)}]}"
]
}
},
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^README.md$"],
"matchStrings": ["(?<depName>[\\w/\\.]+):(?<currentValue>[^\\s]+)"],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["grafana/values\\.ya?ml$"],
"matchStrings": ["#\\s+renovate:\\s+depName=\"(?<depName>.*)\"\\n\\s+gnetId:\\s+(?<packageName>.*?)\\n\\s+revision:\\s+(?<currentValue>.*)"],
"versioningTemplate": "regex:^(?<major>\\d+)$",
"datasourceTemplate": "custom.grafana-dashboards"
},
{
"customType": "regex",
"fileMatch": ["(^|/)Dockerfile$"],
"matchStrings": [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>\\S*)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.*?))?\\nARG .*?_VERSION=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if (equals extractVersion 'true')}}^v(?<version>\\S+){{/if}}"
}
]
}