Many dependencies are installed manually within the Dockerfiles, where Renovate cannot determine the version numbers by default. However, through custom matching, the corresponding data sources can be invoked, and the version number replaced via regex.
35 lines
965 B
Text
35 lines
965 B
Text
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": [
|
|
"config:recommended",
|
|
":combinePatchMinorReleases",
|
|
":enableVulnerabilityAlerts",
|
|
":rebaseStalePrs"
|
|
],
|
|
"prConcurrentLimit": 10,
|
|
"branchPrefix": "renovate/",
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "Update _VERSION variables in Dockerfiles",
|
|
"fileMatch": [
|
|
"(^|/|\\.)Dockerfile$",
|
|
"(^|/)Dockerfile\\.[^/]*$"
|
|
],
|
|
"matchStrings": [
|
|
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s"
|
|
]
|
|
}
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"matchDatasources": [
|
|
"github-release"
|
|
],
|
|
"matchPackageNames": [
|
|
"llvm/llvm-project"
|
|
],
|
|
"extractVersion": "^llvmorg-(?<version>\\d+)\\.\\d+\\.\\d+$"
|
|
}
|
|
]
|
|
}
|