1
Fork 0
ci-images/.renovaterc
Lucas Schwiderski ea4acbb4b9
Fix commit-based pip packages
It seems that Renovate assumes Git tags for these kind of definitions,
and therefore cannot handle commit refs.
So a custom regex manager is needed, with a way to manually specify the
branch to use, thanks to the `master` vs `main` split.
2024-08-26 10:56:34 +02:00

58 lines
1.6 KiB
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"
]
},
{
"customType": "regex",
"description": "Update git-ref pip packages",
"fileMatch": [
"(^|/)requirements.txt$"
],
"matchStrings": [
"(# renovate:( branch=(?<currentValue>\\S+))?\\n)?git\\+(?<packageName>https://.*?)(\\.git)?@(?<currentDigest>.*?)\\n"
],
"currentValueTemplate": "{{#if currentValue}}{{{currentValue}}}{{else}}master{{/if}}",
"datasourceTemplate": "git-refs",
"versioningTemplate": "none"
}
],
"packageRules": [
{
"matchDatasources": [
"github-release"
],
"matchPackageNames": [
"llvm/llvm-project"
],
"extractVersion": "^llvmorg-(?<version>\\d+)\\.\\d+\\.\\d+$"
},
{
"matchPackageNames": [
"nodejs/node",
"nodejs"
],
"matchDatasources": [
"docker"
],
"versioning": "node"
}
]
}