mirror of
https://github.com/thegeeklab/renovate-presets.git
synced 2024-09-21 06:32:48 +02:00
55 lines
1.8 KiB
JSON
55 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"description": ["Preset for use with kubernetes repositories"],
|
|
"extends": ["github>thegeeklab/renovate-presets:base"],
|
|
"flux": {
|
|
"fileMatch": ["^flux/.+\\.ya?ml$"]
|
|
},
|
|
"helm-values": {
|
|
"fileMatch": ["^flux/(.+/)patch(HelmRelease)\\.ya?ml$"],
|
|
"pinDigests": true
|
|
},
|
|
"kubernetes": {
|
|
"fileMatch": ["^flux/(.+/)patch(Deployment|Cluster|Tenant)\\.ya?ml$"]
|
|
},
|
|
"packageRules": [
|
|
{
|
|
"description": "Set semantic commit scope for docker digests",
|
|
"groupName": "docker digests",
|
|
"matchDatasources": ["docker"],
|
|
"matchUpdateTypes": ["pin", "digest"],
|
|
"semanticCommitScope": "docker"
|
|
},
|
|
{
|
|
"description": "Automerge digest updates (usually security patches)",
|
|
"groupName": "docker digests",
|
|
"matchDatasources": ["docker"],
|
|
"matchPackagePatterns": ["^hetznercloud/hcloud-cloud-controller-manager"],
|
|
"matchUpdateTypes": ["pin", "digest"],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"description": "Disable kubernetes-api datasource",
|
|
"datasources": ["kubernetes-api"],
|
|
"enabled": false
|
|
}
|
|
],
|
|
"regexManagers": [
|
|
{
|
|
"fileMatch": ["^flux/(.+/)patch(Cluster)\\.ya?ml$"],
|
|
"matchStrings": [
|
|
"\\s+(imageName):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@]+?)(@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?\\s"
|
|
],
|
|
"datasourceTemplate": "docker"
|
|
},
|
|
{
|
|
"fileMatch": ["^flux/crds/.+\\.ya?ml$"],
|
|
"matchStrings": [
|
|
"# renovate: registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*)\\s.+k8up-(?<currentValue>.*?)/.+"
|
|
],
|
|
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}",
|
|
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
|
|
}
|
|
]
|
|
}
|