-
Notifications
You must be signed in to change notification settings - Fork 753
Expand file tree
/
Copy pathrenovate.json5
More file actions
154 lines (154 loc) · 4.23 KB
/
renovate.json5
File metadata and controls
154 lines (154 loc) · 4.23 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
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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
'schedule:daily'
],
customManagers: [
{
customType: 'regex',
description: 'Update Docker images in Jsonnet files',
managerFilePatterns: ['\\.jsonnet$'],
matchStrings: [
"image:\\s*'(?<depName>.+):(?<currentValue>[^'/@]+)'",
],
datasourceTemplate: 'docker',
},
{
customType: 'regex',
description: 'Update distroless image references in Makefile',
managerFilePatterns: ['Makefile'],
matchStrings: [
"(?<depName>gcr\\.io/distroless/[\\w-]+)@(?<currentDigest>sha256:[a-f0-9]+)",
],
currentValueTemplate: 'latest',
datasourceTemplate: 'docker',
},
{
customType: 'regex',
description: 'Update "go install" commands in development Dockerfiles',
managerFilePatterns: [
'mimir-build-image/Dockerfile',
'development/**/dev.dockerfile',
],
matchStrings: [
'go install\\s+(?<depName>[^@]+)@(?<currentValue>[^\\s]+)',
],
datasourceTemplate: 'go',
},
{
customType: 'regex',
description: 'Update tools in build image installed from Git tags',
managerFilePatterns: [
'mimir-build-image/Dockerfile',
],
matchStrings: [
'# renovate: depName=github.com/(?<depName>[^\\s]+)\\s+ENV [A-Z_]+=(?<currentValue>[^\\s]+)\\s+',
],
datasourceTemplate: 'github-tags',
}
],
baseBranchPatterns: [
'main',
'release-3.0',
'release-2.17',
],
postUpdateOptions: [
'gomodTidy',
'gomodUpdateImportPaths',
],
packageRules: [
{
matchBaseBranches: [
'release-3.0',
'release-2.17',
],
enabled: false,
matchPackageNames: [
'*',
],
},
{
// Don't update replace directives.
matchPackageNames: [
'github.com/grafana/mimir-prometheus',
// Don't attempt to upgrade the upstream Prometheus dependency, as it's replaced by our fork.
'github.com/prometheus/prometheus',
'github.com/grafana/memberlist',
'github.com/grafana/regexp',
'github.com/colega/go-yaml-yaml',
'github.com/grafana/goautoneg',
'github.com/grafana/opentracing-contrib-go-stdlib',
'github.com/charleskorn/go-grpc',
'github.com/grafana/mimir-otlptranslator',
],
enabled: false,
},
{
// Update Go version everywhere at once: build image, go.mod and GitHub Actions workflows.
matchDatasources: [
'docker',
'golang-version',
'github-releases',
],
matchPackageNames: [
'go',
'golang',
'actions/go-versions',
],
groupName: 'Go',
},
{
description: 'Enable updating Node.js dependencies in operations/mimir-mixin-tools/screenshots',
matchFileNames: [
'operations/mimir-mixin-tools/screenshots/**',
],
matchManagers: [
'npm',
],
enabled: true,
},
{
description: 'Pin jaegertracing/all-in-one Docker image, since newer versions lack the agent we depend on',
matchPackageNames: [
'jaegertracing/all-in-one',
],
matchDatasources: [
'docker',
],
enabled: false,
},
{
description: 'Only update dependencies digests on Monday mornings to avoid PR spam from repos not using semver',
matchUpdateTypes: [
'digest',
],
schedule: [
'* 0-4 * * 1'
],
},
{
description: 'Automatically rebase all dependency update PRs touching mimir-build-image/Dockerfile, and ignore pushes from GitHub Actions with new image reference when considering if the PR is modified and can be rebased',
matchFileNames: [
'mimir-build-image/Dockerfile',
'Makefile',
],
rebaseWhen: 'behind-base-branch',
gitIgnoredAuthors: ['199097951+mimir-github-bot[bot]@users.noreply.github.com'],
}
],
branchPrefix: 'deps-update/',
labels: [
'dependency-update',
],
vulnerabilityAlerts: {
enabled: true,
labels: [
'security-update',
],
},
osvVulnerabilityAlerts: true,
dependencyDashboard: false,
prHourlyLimit: 10,
prConcurrentLimit: 20,
}