Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 44 additions & 47 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,64 +1,61 @@
{
"extends": [
"github>newrelic/coreint-automation:renovate-base.json5"
extends: [
'github>newrelic/coreint-automation:renovate-base.json5',
],
// Label PRs with `dependencies`.
"labels": ["dependencies"],
// By default, assign the coreint team as reviewers.
// PRs related to the infra agent will be assigned to CAOS as per a packageRule below.
"reviewers": ["team:coreint"],
// RegexManagers will match patterns and extract dependencies from bundle.yaml.
"regexManagers": [
labels: [
'dependencies',
],
reviewers: [
'team:coreint',
],
customManagers: [
{
// Extract base agent image from bundle.yml.
"fileMatch": [
"^bundle.yml$",
"^bundle-fips.yml$",
"^bundle-windows.yml$"
customType: 'regex',
managerFilePatterns: [
'/^bundle.yml$/',
'/^bundle-fips.yml$/',
'/^bundle-windows.yml$/',
],
depNameTemplate: 'newrelic/infrastructure',
datasourceTemplate: 'docker',
matchStrings: [
'agentVersion: (?<currentValue>[0-9.]+)',
],
"depNameTemplate": "newrelic/infrastructure", // Defined directly since we only capture the version in the regex.
"datasourceTemplate": "docker",
"matchStrings": [
"agentVersion: (?<currentValue>[0-9.]+)"
]
},
{
// Extract dependency name and version for integrations.
"fileMatch": [
"^bundle.yml$",
"^bundle-fips.yml$",
"^bundle-windows.yml$"
customType: 'regex',
managerFilePatterns: [
'/^bundle.yml$/',
'/^bundle-fips.yml$/',
'/^bundle-windows.yml$/',
],
depNameTemplate: 'newrelic/{{{integrationName}}}',
datasourceTemplate: 'github-releases',
matchStrings: [
' *- name: (?<integrationName>.+)\n *version: (?<currentValue>.+)',
],
// Dependency name (org/repo format) is created from the `integrationName` named capture group in the regex below.
"depNameTemplate": "newrelic/{{{integrationName}}}",
"datasourceTemplate": "github-releases", // Version info is fetched from GitHub.
"matchStrings": [
// Capture integration name (without `newrelic/`) and version from bundle.yaml.
" *- name: (?<integrationName>.+)\n *version: (?<currentValue>.+)"
]
}
},
],
"packageRules": [
packageRules: [
{
// Assign PRs related to the agent to the caos team.
"matchPackageNames": [
"newrelic/infrastructure"
matchPackageNames: [
'newrelic/infrastructure',
],
reviewers: [
'team:caos',
],
"reviewers": ["team:caos"]
},
{
// NRJMX 1.6.x is known to be broken, so we skip 1.6.x.
"matchPackageNames": [
"newrelic/nrjmx"
matchPackageNames: [
'newrelic/nrjmx',
],
"allowedVersions": ">=1.7"
allowedVersions: '>=1.7',
},
{
// nri-ecs moved to newrelic/nri-ecs image since 1.4.0.
"matchPackageNames": [
"newrelic/nri-ecs"
matchPackageNames: [
'newrelic/nri-ecs',
],
"allowedVersions": "<=1.3.1"
}
]
allowedVersions: '<=1.3.1',
},
],
}
Loading