Skip to content

Commit 621d2ff

Browse files
authored
chore(renovate): centralize Go toolchain version management (#243)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
1 parent 1046097 commit 621d2ff

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

renovate.json

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["github>open-feature/community-tooling"]
4-
}
3+
"extends": ["github>open-feature/community-tooling"],
4+
"customManagers": [
5+
{
6+
"customType": "regex",
7+
"description": "Update the GoBaseImage constant when a newer golang Docker image is available",
8+
"managerFilePatterns": [
9+
"test/integration/integration.go"
10+
],
11+
"matchStrings": [
12+
"GoBaseImage = \"golang:(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)-alpine\""
13+
],
14+
"depNameTemplate": "golang",
15+
"datasourceTemplate": "docker",
16+
"versioningTemplate": "docker"
17+
},
18+
{
19+
"customType": "regex",
20+
"description": "Update minimum Go version mentioned in README and CONTRIBUTING",
21+
"managerFilePatterns": [
22+
"README.md",
23+
"CONTRIBUTING.md"
24+
],
25+
"matchStrings": [
26+
"Go >= (?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)",
27+
"Go (?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?) or later"
28+
],
29+
"depNameTemplate": "go",
30+
"datasourceTemplate": "golang-version",
31+
"extractVersionTemplate": "^(?<version>\\d+\\.\\d+)"
32+
}
33+
],
34+
"packageRules": [
35+
{
36+
"description": "Group all Go toolchain bumps (go.mod, GoBaseImage const, docs) into a single PR",
37+
"matchDatasources": ["docker", "golang-version"],
38+
"matchPackageNames": ["golang", "go"],
39+
"groupName": "go toolchain"
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)