mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
Patch updates were merged automatically for images written as a fixed string, but not for images whose tag is a variable, because the rule was bound to renovate's docker-compose manager. Which manager reads an image says nothing about how risky its patch releases are. Drop the manager from the rule, so it covers every image. An image that should not be merged automatically gets its own rule by package name, where the exception is visible.
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"dependencyDashboard": true,
|
|
"platformAutomerge": true,
|
|
"enabledManagers": ["docker-compose", "custom.regex"],
|
|
"baseBranchPatterns": ["main", "stable-4.0", "stable-7.2", "stable-9.1"],
|
|
"packageRules": [
|
|
{
|
|
"matchManagers": ["docker-compose", "custom.regex"],
|
|
"labels": ["Type:Dependencies", "Bot:Renovate"]
|
|
},
|
|
{
|
|
"matchUpdateTypes": ["patch"],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"matchBaseBranches": ["stable-4.0", "stable-7.2", "stable-9.1"],
|
|
"matchUpdateTypes": ["major", "minor"],
|
|
"enabled": false
|
|
},
|
|
{
|
|
"matchPackageNames": ["postgres"],
|
|
"matchManagers": ["docker-compose"],
|
|
"allowedVersions": "/^17\\.\\d+-alpine$/"
|
|
}
|
|
],
|
|
"docker-compose": {
|
|
"managerFilePatterns": ["/.+\\.ya?ml$/"]
|
|
},
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"managerFilePatterns": ["/.+\\.ya?ml$/"],
|
|
"matchStrings": [
|
|
"image: \\$\\{[^}:]+:-(?<depName>[^}]+)\\}:\\$\\{[^}:]+:-(?<currentValue>[^@}]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\\}"
|
|
],
|
|
"datasourceTemplate": "docker"
|
|
}
|
|
]
|
|
}
|