Skip to content

Commit 6dd9f69

Browse files
committed
konflux: enable back renovate
We want Renovate to update the RPM lockfiles and also the openshift-client version. For the RPM lockfiles, Renovate will test the changes on a dedicated branch without opening a PR, and will automerge the branch commit it if the CI passes. We are disabling everything related to Golang.
1 parent 4381ca4 commit 6dd9f69

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

renovate.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
11
{
2-
"enabled": false
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"baseBranches": ["main"],
4+
"branchPrefix": "renovate/",
5+
"prHourlyLimit": 0,
6+
"ignorePaths": [
7+
"vendor/**"
8+
],
9+
"branchConcurrentLimit": 0,
10+
"packageRules": [
11+
{
12+
"matchDatasources": ["go"],
13+
"enabled": false,
14+
"description": "Disable updates for Go modules"
15+
},
16+
{
17+
"matchDatasources": ["golang-version"],
18+
"enabled": false,
19+
"description": "Disable updates for Go modules"
20+
},
21+
{
22+
"matchManagers": ["rpm"],
23+
"matchBaseBranches": ["main"],
24+
"groupName": "RPM Updates",
25+
"commitMessageTopic": "RPM updates",
26+
"enabled": true,
27+
"schedule": [
28+
"at any time"
29+
],
30+
"branchPrefix": "renovate/rpm/",
31+
"semanticCommits": "enabled",
32+
"automerge": "true",
33+
"automergeType": "branch"
34+
},
35+
{
36+
"matchDatasources": ["custom.oc"],
37+
"extractVersion": "openshift-client-linux-(?<version>.+)\\.tar\\.gz"
38+
}
39+
],
40+
"customManagers": [
41+
{
42+
"customType": "regex",
43+
"datasourceTemplate": "custom.oc",
44+
"fileMatch": ["artifacts.lock.yaml"],
45+
"depNameTemplate": "openshift-client",
46+
"versioningTemplate": "semver",
47+
"matchStrings": [
48+
"- download_url:.*openshift-client-linux-(?<currentValue>.*)\.tar\.gz",
49+
"- download_url:.*ocp/(?<currentValue>.*)/openshift-client-linux.*"
50+
]
51+
}
52+
],
53+
"customDatasources": {
54+
"oc": {
55+
"defaultRegistryUrlTemplate": "https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/sha256sum.txt",
56+
"format": "plain"
57+
}
58+
}
359
}

0 commit comments

Comments
 (0)