⬆️: migrate config .github/renovate.json

This commit is contained in:
renovate[bot] 2024-11-08 21:52:54 +00:00 committed by GitHub
parent 456d02d957
commit 7b663092b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

70
.github/renovate.json vendored
View file

@ -2,12 +2,19 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch", "rebaseWhen": "behind-base-branch",
"dependencyDashboard": true, "dependencyDashboard": true,
"labels": ["dependencies", "no-stale"], "labels": [
"dependencies",
"no-stale"
],
"commitMessagePrefix": "⬆️", "commitMessagePrefix": "⬆️",
"commitMessageTopic": "{{depName}}", "commitMessageTopic": "{{depName}}",
"regexManagers": [ "customManagers": [
{ {
"fileMatch": ["/Dockerfile$", "/build.yaml$"], "customType": "regex",
"fileMatch": [
"/Dockerfile$",
"/build.yaml$"
],
"matchStringsStrategy": "any", "matchStringsStrategy": "any",
"matchStrings": [ "matchStrings": [
"ARG BUILD_FROM=(?<depName>.*?):(?<currentValue>.*?)\\s+", "ARG BUILD_FROM=(?<depName>.*?):(?<currentValue>.*?)\\s+",
@ -16,7 +23,10 @@
"datasourceTemplate": "docker" "datasourceTemplate": "docker"
}, },
{ {
"fileMatch": ["/Dockerfile$"], "customType": "regex",
"fileMatch": [
"/Dockerfile$"
],
"matchStringsStrategy": "any", "matchStringsStrategy": "any",
"matchStrings": [ "matchStrings": [
"\\s\\s(?<package>[a-z0-9][a-z0-9-]+)=(?<currentValue>[a-z0-9-_.]+)\\s+" "\\s\\s(?<package>[a-z0-9][a-z0-9-]+)=(?<currentValue>[a-z0-9-_.]+)\\s+"
@ -28,38 +38,64 @@
], ],
"packageRules": [ "packageRules": [
{ {
"matchDatasources": ["repology"], "matchDatasources": [
"repology"
],
"automerge": true "automerge": true
}, },
{ {
"groupName": "Add-on base image", "groupName": "Add-on base image",
"matchDatasources": ["docker"] "matchDatasources": [
"docker"
]
}, },
{ {
"groupName": "Add-on base image", "groupName": "Add-on base image",
"matchDatasources": ["docker"], "matchDatasources": [
"matchUpdateTypes": ["minor", "patch"], "docker"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true "automerge": true
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": [
"addLabels": ["python"] "pip_requirements"
],
"addLabels": [
"python"
]
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": [
"matchDepTypes": ["dev"], "pip_requirements"
],
"matchDepTypes": [
"dev"
],
"rangeStrategy": "pin" "rangeStrategy": "pin"
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": [
"matchUpdateTypes": ["minor", "patch"], "pip_requirements"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true "automerge": true
}, },
{ {
"groupName": "Python", "groupName": "Python",
"matchDatasources": ["repology"], "matchDatasources": [
"matchPackagePatterns": ["^alpine_.*/python3(-dev)?$"], "repology"
"automerge": true ],
"automerge": true,
"matchPackageNames": [
"/^alpine_.*/python3(-dev)?$/"
]
} }
] ]
} }