Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate renovate config #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
177 changes: 89 additions & 88 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,124 +1,125 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:best-practices',
':disableRateLimiting',
],
baseBranches: [
// don't run on renovate branches
"$default",
// See https://docs.renovatebot.com/configuration-options/#basebranches
// baseBranches supports Regular Expressions that must begin and end with /
], //See also possible support for multiple base branches, one per K8S minor version https://docs.renovatebot.com/configuration-options/#basebranches
"packageRules": [
'$default',
],
packageRules: [
{
"description": "@JCL38-ORANGE assignments",
"matchPackagePatterns": [
"*"
description: '@JCL38-ORANGE assignments',
assignees: [
'JCL38-ORANGE',
],
matchPackageNames: [
'*',
],
"assignees": [
"JCL38-ORANGE"
]
},
{
description: "Add common labels",
matchDepNames: ["*"],
description: 'Add common labels',
matchDepNames: [
'*',
],
addLabels: [
// See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields
"datasource/{{datasource}}",
"depName/{{depNameSanitized}}",
"manager/{{manager}}",
]
'datasource/{{datasource}}',
'depName/{{depNameSanitized}}',
'manager/{{manager}}',
],
},
{
description: 'Auto-merge patch releases, e.g. from 1.25.1 to 1.25.2',
matchPackageNames: [
'golang',
],
//see https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates
matchUpdateTypes: [
'patch',
'minor'
'minor',
],
matchCurrentVersion: '!/-rc/',
automerge: true,
//see https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests
ignoreTests: true,
}
},
],
"regexManagers": [
customManagers: [
{
"description": "XK6_MONGO version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_MONGO_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "GhMartingit/xk6-mongo",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
customType: 'regex',
description: 'XK6_MONGO version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_MONGO_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'GhMartingit/xk6-mongo',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
"description": "XK6_SQL_DRIVER_POSTGRES version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_SQL_DRIVER_POSTGRES_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "grafana/xk6-sql-driver-postgres",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
customType: 'regex',
description: 'XK6_SQL_DRIVER_POSTGRES version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_SQL_DRIVER_POSTGRES_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'grafana/xk6-sql-driver-postgres',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
"description": "XK6_SQL_DRIVER_MYSQL version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_SQL_DRIVER_MYSQL_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "grafana/xk6-sql-driver-mysql",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
customType: 'regex',
description: 'XK6_SQL_DRIVER_MYSQL version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_SQL_DRIVER_MYSQL_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'grafana/xk6-sql-driver-mysql',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
"description": "XK6_SQL version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_SQL_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "grafana/xk6-sql",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
customType: 'regex',
description: 'XK6_SQL version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_SQL_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'grafana/xk6-sql',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
"description": "XK6_LOKI version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_LOKI_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "grafana/xk6-loki",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
customType: 'regex',
description: 'XK6_LOKI version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_LOKI_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'grafana/xk6-loki',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
{
"description": "XK6_BUILDER version in DockerFile",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"ENV XK6_BUILDER_VERSION=\"(?<currentValue>.*)\""
],
"depNameTemplate": "grafana/xk6",
"datasourceTemplate": "github-releases",
"versioningTemplate": "regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$"
}
customType: 'regex',
description: 'XK6_BUILDER version in DockerFile',
fileMatch: [
'Dockerfile$',
],
matchStrings: [
'ENV XK6_BUILDER_VERSION="(?<currentValue>.*)"',
],
depNameTemplate: 'grafana/xk6',
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?(?<prerelease>-[0-9A-Za-z-\\.]+)?$',
},
],
// customManagers: [
// {
// customType: 'regex',
// fileMatch: ["Dockerfile$"],
// "matchStrings": [
// // For dockerfile: https://regex101.com/r/iJfnnL/1
// "datasource=(?<datasource>github-releases) depName=(?<depName>[\\w\\d\\//\\-\\_]+)\\nENV .+_VERSION[\\s*|=]??\\\"?(?<currentValue>[\\w\\d\\/\\-\\.\\_]+)\\\"?\\s*",
// ],
// // datasourceTemplate: "{{datasource}}", // should not be required as we extract datasource
// versioningTemplate: "regex:(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$",
// extractVersionTemplate: "^v?(?<version>.*)$"
// }
// ]
}
}