Skip to content

Commit 50f8223

Browse files
authored
Merge pull request #2630 from rahulait/renovate-bump-go
[renovate] allow renovate to bump golang versions
2 parents 17c0808 + d26af03 commit 50f8223

1 file changed

Lines changed: 39 additions & 4 deletions

File tree

.github/renovate.json

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@
5252
"depNameTemplate": "{{repo}}/{{image}}",
5353
"datasourceTemplate": "docker",
5454
"versioningTemplate": "loose"
55+
},
56+
{
57+
"customType": "regex",
58+
"managerFilePatterns": [
59+
"go.mod",
60+
"tools/go.mod"
61+
],
62+
"matchStrings": [
63+
"go (?<currentValue>\\d+\\.\\d+\\.\\d+)"
64+
],
65+
"depNameTemplate": "go",
66+
"datasourceTemplate": "golang-version",
67+
"versioningTemplate": "semver"
68+
},
69+
{
70+
"customType": "regex",
71+
"managerFilePatterns": [
72+
"versions.mk"
73+
],
74+
"matchStrings": [
75+
"GOLANG_VERSION \\?= (?<currentValue>\\d+\\.\\d+\\.\\d+)"
76+
],
77+
"depNameTemplate": "go",
78+
"datasourceTemplate": "golang-version",
79+
"versioningTemplate": "semver"
5580
}
5681
],
5782
"labels": [
@@ -60,7 +85,7 @@
6085
],
6186
"packageRules": [
6287
{
63-
"matchPaths": ["deployments/gpu-operator/values.yaml"],
88+
"matchFileNames": ["deployments/gpu-operator/values.yaml"],
6489
"matchPackageNames": [
6590
"nvcr.io/nvidia/cloud-native/k8s-driver-manager",
6691
"nvcr.io/nvidia/cloud-native/k8s-kata-manager",
@@ -75,7 +100,7 @@
75100
"separateMajorMinor": false
76101
},
77102
{
78-
"matchPaths": [
103+
"matchFileNames": [
79104
"deployments/gpu-operator/values.yaml",
80105
"bundle/manifests/gpu-operator-certified.clusterserviceversion.yaml"
81106
],
@@ -87,7 +112,7 @@
87112
"separateMajorMinor": false
88113
},
89114
{
90-
"matchPaths": [
115+
"matchFileNames": [
91116
"deployments/gpu-operator/values.yaml",
92117
"bundle/manifests/gpu-operator-certified.clusterserviceversion.yaml"
93118
],
@@ -98,7 +123,7 @@
98123
"separateMajorMinor": false
99124
},
100125
{
101-
"matchPaths": ["deployments/gpu-operator/values.yaml"],
126+
"matchFileNames": ["deployments/gpu-operator/values.yaml"],
102127
"matchPackageNames": [
103128
"nvcr.io/nvidia/cuda"
104129
],
@@ -112,6 +137,16 @@
112137
{
113138
"matchDatasources": ["*"],
114139
"groupName": "{{depName}}"
140+
},
141+
{
142+
"description": "Group all Go toolchain version bumps",
143+
"matchManagers": ["custom.regex"],
144+
"matchPackageNames": ["go"],
145+
"matchDatasources": ["golang-version"],
146+
"groupName": "Go toolchain",
147+
"groupSlug": "go-toolchain",
148+
"separateMajorMinor": false,
149+
"separateMinorPatch": false
115150
}
116151
]
117152
}

0 commit comments

Comments
 (0)