46 lines
1.7 KiB
JSON
46 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": ["config:recommended"],
|
|
"timezone": "Europe/Bratislava",
|
|
"prHourlyLimit": 0,
|
|
"packageRules": [
|
|
{
|
|
"description": "package.json only pins public/vendor/, so re-sync the vendored files in the same PR",
|
|
"matchManagers": ["npm"],
|
|
"postUpgradeTasks": {
|
|
"commands": ["npm ci --ignore-scripts --no-audit --no-fund", "node bin/vendor-sync.mjs"],
|
|
"fileFilters": ["public/vendor/**"],
|
|
"executionMode": "branch"
|
|
}
|
|
},
|
|
{
|
|
"description": "Fonts and the Liberty style/sprite are pinned to git commits in bin/assets-sync.mjs, re-download them in the same PR",
|
|
"matchFileNames": ["bin/assets-sync.mjs"],
|
|
"postUpgradeTasks": {
|
|
"commands": ["node bin/assets-sync.mjs"],
|
|
"fileFilters": ["public/vendor/**"],
|
|
"executionMode": "branch"
|
|
}
|
|
}
|
|
],
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "Dockerfile ARG *_VERSION pins annotated with a `# renovate:` comment",
|
|
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
|
|
"matchStrings": [
|
|
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+ARG \\S+_VERSION=(?<currentValue>\\S+)"
|
|
],
|
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"description": "Git commit pins annotated with a `// renovate:` comment",
|
|
"managerFilePatterns": ["/^bin/assets-sync\\.mjs$/"],
|
|
"matchStrings": [
|
|
"// renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) branch=(?<currentValue>\\S+)\\s+const \\w+ = \"(?<currentDigest>[0-9a-f]{40})\""
|
|
]
|
|
}
|
|
]
|
|
}
|