renovate-config/default.json

60 lines
1.8 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":dependencyDashboard", ":semanticCommits", ":automergeMinor"],
"automergeType": "branch",
"lockFileMaintenance": {
"enabled": true,
"automerge": true,
"schedule": ["at 4am on monday"]
},
"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}}"
},
{
"customType": "regex",
"datasourceTemplate": "docker",
"fileMatch": ["\\.yaml$"],
"matchStrings": [
"image:\\s+repository:\\s+(?<depName>.*?)\\s+tag:\\s+(?:'|\")?(?<currentValue>[\\w\\.-]*)(?:'|\")?"
],
"versioning": "docker"
}
],
"argocd": {
"fileMatch": ["apps/.+\\.yaml$"]
},
"kubernetes": {
"fileMatch": ["\\.yaml$"]
}
}