renovate-config/default.json

43 lines
1.3 KiB
JSON
Raw Normal View History

2024-05-03 12:03:02 +02:00
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":dependencyDashboard", ":semanticCommits"],
"lockFileMaintenance": {
"enabled": true,
"automerge": true
},
"hostRules": [
{
"matchHost": "docker.nyyu.dev",
"username": "{{ secrets.REGISTRY_USERNAME }}",
"password": "{{ secrets.REGISTRY_PASSWORD }}"
}
],
"packageRules": [
{
"matchPackageNames": ["cargo"],
"rangeStrategy": "update-lockfile"
},
{
"matchManagers": ["cargo", "npm"],
"matchUpdateTypes": ["patch"],
"enabled": false
},
{
"matchManagers": ["cargo", "npm"],
"matchUpdateTypes": ["minor"],
"matchCurrentVersion": "!/^0/",
"enabled": false
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^Dockerfile$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( extractVersion=(?<extractVersion>.+?))?( versioning=(?<versioning>.*?))?\\n(?:ENV|ARG)?\\s.*?_(?:VERSION|VER)=(?<currentValue>[^\\s]+).*\\n"
],
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}