Repository navigation
Expand file tree
/
Copy pathrenovate.json
More file actions
116 lines (116 loc) · 4.18 KB
/
Copy pathrenovate.json
File metadata and controls
116 lines (116 loc) · 4.18 KB
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["customManagers:githubActionsVersions"],
"addLabels": ["dependencies"],
"terraform": {
"fileMatch": ["\\.tf(\\.tplt)?$"]
},
"customManagers": [
{
"customType": "regex",
"description": "Update Docker image tags in Helm values templates",
"managerFilePatterns": ["/values\\.ya?ml\\.tplt$/"],
"matchStrings": [
"repository:\\s*[\"']?(?<depName>[^\"'\\s]+)[\"']?\\s*\\n\\s*tag:\\s*[\"']?(?<currentValue>[^\"'\\s]+)[\"']?"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"customType": "regex",
"description": "Update built-in Kubara Catalog OCI references",
"managerFilePatterns": [
"/^src\\/internal\\/catalog\\/bootstrap\\.go$/",
"/^docs\\/content\\/.*\\.md$/"
],
"matchStrings": [
"oci://(?<depName>ghcr\\.io/kubara-io/catalogs/(bootstrap|general)):(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Update annotated dependency versions in Go constants",
"managerFilePatterns": ["/\\.go$/"],
"matchStrings": [
"// renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) registryUrl=(?<registryUrl>\\S+)\\s+(?:const\\s+)?\\w+\\s*=\\s*[\"'](?<currentValue>[^\"']+)[\"']"
]
}
],
"packageRules": [
{
"description": "Update the compatible bootstrap and general catalogs together",
"matchDatasources": ["docker"],
"matchPackageNames": [
"ghcr.io/kubara-io/catalogs/bootstrap",
"ghcr.io/kubara-io/catalogs/general"
],
"groupName": "Kubara catalogs",
"groupSlug": "kubara-catalogs"
},
{
"matchFiles": ["**/Chart.{yaml,yml}"],
"bumpVersions": [
{
"filePatterns": ["{{packageFileDir}}/Chart.{yaml,yml}"],
"matchStrings": ["version:\\s(?<version>[^\\s]+)"],
"bumpType": "{{#if isMajor}}major{{else if isMinor}}minor{{else}}patch{{/if}}"
}
],
"postUpgradeTasks": {
"commands": [
"./.scripts/renovate_bot_update_helm_changelog.sh \"{{{depName}}}\" \"{{{currentVersion}}}\" \"{{{newVersion}}}\" \"{{{packageFileDir}}}\" \"{{#if isMajor}}major{{/if}}{{#if isMinor}}minor{{/if}}{{#if isPatch}}patch{{/if}}\""
],
"fileFilters": ["**/CHANGELOG.md"],
"executionMode": "update"
}
},
{
"description": "Run go mod tidy for all go module updates",
"matchManagers": ["gomod"],
"postUpdateOptions": ["gomodTidy"]
},
{
"description": "Group k8s.io go modules (minor and patch)",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["k8s.io/"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "k8s.io go modules",
"groupSlug": "k8s-io-go-modules"
},
{
"description": "Group sigs.k8s.io go modules (minor and patch)",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["sigs.k8s.io/"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "sigs.k8s.io go modules",
"groupSlug": "sigs-k8s-io-go-modules"
},
{
"description": "Override: group controller-runtime with k8s.io modules because it follows the k8s.io/client-go minor",
"matchManagers": ["gomod"],
"matchPackageNames": ["sigs.k8s.io/controller-runtime"],
"matchUpdateTypes": ["minor", "patch"],
"enabled": true,
"groupName": "k8s.io go modules",
"groupSlug": "k8s-io-go-modules"
},
{
"description": "Group golang.org/x go modules (minor and patch)",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["golang.org/x/"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "golang.org/x go modules",
"groupSlug": "golang-org-x-go-modules"
},
{
"description": "Group koanf go modules (minor and patch)",
"matchManagers": ["gomod"],
"matchPackagePrefixes": ["github.com/knadh/koanf/"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "koanf go modules",
"groupSlug": "koanf-go-modules"
}
]
}