Skip to content

Commit

Permalink
chore(config): migrate config renovate.json5
Browse files Browse the repository at this point in the history
  • Loading branch information
elastic-renovate-prod[bot] authored Aug 9, 2024
1 parent 23a24b2 commit e4b6922
Showing 1 changed file with 119 additions and 83 deletions.
202 changes: 119 additions & 83 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,137 +1,173 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",

"schedule": "every weekend",

// double PR and branch limits
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
schedule: 'every weekend',
prConcurrentLimit: 20,
branchConcurrentLimit: 20,
labels: ['dependencies'],

// put by default dependency update all in one group
groupName: "config-no-service",

"assigneesFromCodeOwners": true,

"packageRules": [
labels: [
'dependencies',
],
groupName: 'config-no-service',
assigneesFromCodeOwners: true,
packageRules: [
{
"matchFileNames": ["src/accountingservice/**"],
"groupName": "accountingservice",
matchFileNames: [
'src/accountingservice/**',
],
groupName: 'accountingservice',
},
{
"matchFileNames": ["src/adservice/**"],
"groupName": "adservice",
matchFileNames: [
'src/adservice/**',
],
groupName: 'adservice',
},
{
"matchFileNames": ["src/cartservice/**"],
"groupName": "cartservice",
matchFileNames: [
'src/cartservice/**',
],
groupName: 'cartservice',
},
{
"matchFileNames": ["src/checkoutservice/**"],
"groupName": "checkoutservice",
matchFileNames: [
'src/checkoutservice/**',
],
groupName: 'checkoutservice',
},
{
"matchFileNames": ["src/currencyservice/**"],
"groupName": "currencyservice",
matchFileNames: [
'src/currencyservice/**',
],
groupName: 'currencyservice',
},
{
"matchFileNames": ["src/emailservice/**"],
"groupName": "emailservice",
matchFileNames: [
'src/emailservice/**',
],
groupName: 'emailservice',
},
{
"matchFileNames": ["src/featureflagservice/**"],
"groupName": "featureflagservice",
matchFileNames: [
'src/featureflagservice/**',
],
groupName: 'featureflagservice',
},
{
"matchFileNames": ["src/frauddetectionservice/**"],
"groupName": "frauddetectionservice",
matchFileNames: [
'src/frauddetectionservice/**',
],
groupName: 'frauddetectionservice',
},
{
"matchFileNames": ["src/frontend/**"],
"groupName": "frontend",
matchFileNames: [
'src/frontend/**',
],
groupName: 'frontend',
},
{
"matchFileNames": ["src/frontendproxy/**"],
"groupName": "frontendproxy",
matchFileNames: [
'src/frontendproxy/**',
],
groupName: 'frontendproxy',
},
{
"matchFileNames": ["src/grafana/**"],
"groupName": "grafana",
matchFileNames: [
'src/grafana/**',
],
groupName: 'grafana',
},
{
"matchFileNames": ["src/kafka/**"],
"groupName": "kafka",
matchFileNames: [
'src/kafka/**',
],
groupName: 'kafka',
},
{
"matchFileNames": ["src/loadgenerator/**"],
"groupName": "loadgenerator",
matchFileNames: [
'src/loadgenerator/**',
],
groupName: 'loadgenerator',
},
{
"matchFileNames": ["src/otelcollector/**"],
"groupName": "otelcollector",
matchFileNames: [
'src/otelcollector/**',
],
groupName: 'otelcollector',
},
{
"matchFileNames": ["src/paymentservice/**"],
"groupName": "paymentservice",
matchFileNames: [
'src/paymentservice/**',
],
groupName: 'paymentservice',
},
{
"matchFileNames": ["src/productcatalogservice/**"],
"groupName": "productcatalogservice",
matchFileNames: [
'src/productcatalogservice/**',
],
groupName: 'productcatalogservice',
},
{
"matchFileNames": ["src/prometheus/**"],
"groupName": "prometheus",
matchFileNames: [
'src/prometheus/**',
],
groupName: 'prometheus',
},
{
"matchFileNames": ["src/quoteservice/**"],
"groupName": "quoteservice",
matchFileNames: [
'src/quoteservice/**',
],
groupName: 'quoteservice',
},
{
"matchFileNames": ["src/recommendationservice/**"],
"groupName": "recommendationservice",
matchFileNames: [
'src/recommendationservice/**',
],
groupName: 'recommendationservice',
},
{
"matchFileNames": ["src/shippingservice/**"],
"groupName": "shippingservice",
matchFileNames: [
'src/shippingservice/**',
],
groupName: 'shippingservice',
},
{
// intentionally using Java 11 in some examples
// not using matchUpdateTypes "major", because renovate wants to bump "11-jre" to "11.0.19_7-jre"
"matchPackageNames": ["eclipse-temurin"],
"enabled": false
}
matchPackageNames: [
'eclipse-temurin',
],
enabled: false,
},
],

"regexManagers": [
customManagers: [
{
// Parse image version from .env file.
"fileMatch": [
".env$"
customType: 'regex',
fileMatch: [
'.env$',
],
datasourceTemplate: 'docker',
matchStrings: [
'IMAGE=(?<depName>.+):(?<currentValue>.+)',
],
"datasourceTemplate": "docker",
"matchStrings": [
"IMAGE=(?<depName>.+):(?<currentValue>.+)"
]
},
{
"fileMatch": [
"test/tracetesting/Dockerfile$"
customType: 'regex',
fileMatch: [
'test/tracetesting/Dockerfile$',
],
datasourceTemplate: 'docker',
depNameTemplate: 'kubeshop/tracetest',
matchStrings: [
'IMAGE_VERSION=(?<currentValue>.+)',
],
"datasourceTemplate": "docker",
"depNameTemplate": "kubeshop/tracetest",
"matchStrings": [
"IMAGE_VERSION=(?<currentValue>.+)"
]
},
{
"fileMatch": [
"src/grafana/provisioning/datasources/opensearch.yaml$"
customType: 'regex',
fileMatch: [
'src/grafana/provisioning/datasources/opensearch.yaml$',
],
"datasourceTemplate": "docker",
"depNameTemplate": "opensearchproject/opensearch",
"matchStrings": [
"version: (?<currentValue>.+)"
]
}
]
datasourceTemplate: 'docker',
depNameTemplate: 'opensearchproject/opensearch',
matchStrings: [
'version: (?<currentValue>.+)',
],
},
],
}

0 comments on commit e4b6922

Please sign in to comment.