-
Notifications
You must be signed in to change notification settings - Fork 26
/
renovate.json5
177 lines (177 loc) · 5.47 KB
/
renovate.json5
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
// JSON5 spec: https://json5.org/
// Renovate docs: https://docs.renovatebot.com/configuration-options/
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended", // Use recommended settings
":enablePreCommit", // Enable pre-commit hook updates
":gitSignOff", // Sign off commits
"helpers:pinGitHubActionDigests" // Pin GitHub action digests
],
"labels": [
"dependencies"
],
"lockFileMaintenance": { // Update Gemfile.lock
"enabled": true
},
"packageRules": [
{
// Update GH actions in a single PR
"groupName": "GH actions",
"matchDepTypes": [
"action"
]
},
{
// Update golang tag in dockerfile & golang version in workflows in a
// single PR"
"groupName": "golang version",
"matchDepNames": [
"golang",
"go"
]
},
{
// Disable some docker image updates
"matchDatasources": ["docker"],
"matchPackageNames": [
"controller", // Ignore the fake "controller" docker image name
"quay.io/backube/snapscheduler", // Don't pin our own image
"quay.io/operator-framework/scorecard-test" // Ignore OSDK scorecard image
],
"enabled": false
},
{
// Renovate's packages update too frequently, so we only schedule updates
// once a week to keep the noise down
"matchPackageNames": ["renovatebot/pre-commit-hooks"],
"schedule": ["before 9am on monday"]
}
],
"postUpdateOptions": [
"gomodTidy" // Run `go mod tidy` after updating dependencies
],
"customManagers": [
{
"customType": "regex",
"description": "controller-tools version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"CONTROLLER_TOOLS_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/controller-tools",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "golang version updates (major/minor only)",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"GO_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "golang",
"datasourceTemplate": "golang-version",
"extractVersionTemplate": "^(?<version>.*)\\.\\d+$",
"versioningTemplate": "loose"
},
{
"customType": "regex",
"description": "golangci-lint version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"GOLANGCI_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "golangci/golangci-lint",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Helm version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"HELM_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "helm/helm",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Docker image updates in yamls",
"fileMatch": [
"^config/.+\\.ya?ml$"
],
"matchStrings": [
"image:\\s*\"?(?<depName>.*?):(?<currentValue>.*?)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?\\s"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "KinD version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"KIND_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/kind",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
"customType": "regex",
"description": "kustomize version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"KUSTOMIZE_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kubernetes-sigs/kustomize",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^kustomize/(?<version>.*)$"
},
{
"customType": "regex",
"description": "Kuttl version updates",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$",
"(^|/)Makefile$"
],
"matchStrings": [
"KUTTL_VERSION\\s*:=?\\s*\"?(?<currentValue>.+?)\"?\\n"
],
"depNameTemplate": "kudobuilder/kuttl",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "Update tags for repos in hack/setup-kind-cluster.sh",
"fileMatch": [
"^hack/setup-kind-cluster.sh$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+TAG\\s*=\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
"schedule": [
"* 3-6 * * 1-5" // Run between 3am and 6am on weekdays
],
"semanticCommits": "disabled",
"timezone": "America/New_York"
}