Skip to content

Commit eebd94a

Browse files
chore(config): migrate config .github/renovate.json5
1 parent 98f6e93 commit eebd94a

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

.github/renovate.json5

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
{
2-
"extends": [
3-
"config:base",
4-
// go dependencies and auto-merge configuration: https://github.com/newrelic/coreint-automation/blob/main/renovate-base.json5
5-
"github>newrelic/coreint-automation:renovate-base.json5",
2+
extends: [
3+
'config:recommended',
4+
'github>newrelic/coreint-automation:renovate-base.json5',
65
],
7-
// Label PRs with `dependencies`.
8-
"labels": ["dependencies"],
9-
"enabledManagers": [
10-
// Enable only the regex manager (for Dockerfile base image bumping).
11-
"regex"
6+
labels: [
7+
'dependencies',
128
],
13-
"regexManagers": [
9+
enabledManagers: [
10+
'custom.regex',
11+
],
12+
customManagers: [
1413
{
15-
// Parse bundle image version from `base_image` ARG in Dockerfile.
16-
"fileMatch": [
17-
"build/container/Dockerfile$"
14+
customType: 'regex',
15+
fileMatch: [
16+
'build/container/Dockerfile$',
17+
],
18+
datasourceTemplate: 'docker',
19+
matchStrings: [
20+
'base_image=(?<depName>.+):(?<currentValue>.+)',
1821
],
19-
"datasourceTemplate": "docker",
20-
"matchStrings": [
21-
"base_image=(?<depName>.+):(?<currentValue>.+)"
22-
]
2322
},
2423
{
25-
// Parse version of embedded integrations.
26-
"fileMatch": [
27-
"build/embed/integrations.version$"
24+
customType: 'regex',
25+
fileMatch: [
26+
'build/embed/integrations.version$',
27+
],
28+
depNameTemplate: 'newrelic/{{{integrationName}}}',
29+
datasourceTemplate: 'github-releases',
30+
matchStrings: [
31+
'(?<integrationName>.+),(?<currentValue>v.+)',
2832
],
29-
"depNameTemplate": "newrelic/{{{integrationName}}}",
30-
"datasourceTemplate": "github-releases", // Version info is fetched from GitHub.
31-
"matchStrings": [
32-
"(?<integrationName>.+),(?<currentValue>v.+)"
33-
]
34-
}
35-
]
33+
},
34+
],
3635
}

build/embed/integrations.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
nri-docker,v2.1.2
33
nri-flex,v1.16.2
44
nri-winservices,v1.0.3
5-
nri-prometheus,v2.23.0
5+
nri-prometheus,v2.22.0

0 commit comments

Comments
 (0)