chore: move renovate config to an working location and configure it for helm and automatic version bumping
This commit is contained in:
parent
7454364fb6
commit
31d17533db
2 changed files with 47 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:base",
|
|
||||||
"config:recommended"
|
|
||||||
],
|
|
||||||
"regexManagers": [
|
|
||||||
{
|
|
||||||
"datasourceTemplate": "docker",
|
|
||||||
"fileMatch": [
|
|
||||||
"(^|/)Chart\\.yaml$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"#\\s*renovate: image=(?<depName>.*?)\\s+appVersion:\\s*[\"']?(?<currentValue>[\\w+\\.\\-]*)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fileMatch": [
|
|
||||||
"(^|/)mautrix-synapse/Chart\\.yaml$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"appVersion:\\s+\"(?<currentValue>v[a-z0-9.-]+)\""
|
|
||||||
],
|
|
||||||
"depNameTemplate": "dock.mau.dev/mautrix/signal",
|
|
||||||
"datasourceTemplate": "docker",
|
|
||||||
"versioningTemplate": "docker"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
47
renovate.json5
Normal file
47
renovate.json5
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:base",
|
||||||
|
"config:recommended"
|
||||||
|
],
|
||||||
|
"regexManagers": [
|
||||||
|
{
|
||||||
|
// Match and update Docker image and appVersion in Chart.yaml
|
||||||
|
"datasourceTemplate": "docker",
|
||||||
|
"fileMatch": [
|
||||||
|
"(^|/)Chart\\.yaml$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"#\\s*renovate: image=(?<depName>.*?)\\s+appVersion:\\s*[\"']?(?<currentValue>[\\w+\\.\\-]*)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Match and bump chart version when appVersion changes
|
||||||
|
"fileMatch": [
|
||||||
|
"(^|/)Chart\\.yaml$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"appVersion:\\s*[\"']?(?<currentValue>[\\w+\\.\\-]*)",
|
||||||
|
"version:\\s*[\"']?(?<currentVersion>[\\w+\\.\\-]*)"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "regex",
|
||||||
|
"depNameTemplate": "chart-version-update",
|
||||||
|
"versioningTemplate": "semver",
|
||||||
|
"updateStrategy": "bump"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
// Group chart version and appVersion updates together
|
||||||
|
"matchPackageNames": ["chart-version-update"],
|
||||||
|
"groupName": "Chart and AppVersion Updates",
|
||||||
|
"bumpVersion": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"helmv3": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"rangeStrategy": "bump",
|
||||||
|
"timezone": "UTC",
|
||||||
|
"schedule": ["before 5am on Monday"]
|
||||||
|
}
|
Loading…
Reference in a new issue