1
0
Fork 0

chore(renovate): add custom regex manager for docker images in shell script

- add custom manager to detect and update docker image references in shell scripts
- configure regex pattern to match image name and version variables
- set datasource to docker for automated version updates
This commit is contained in:
pooneyy 2026-02-04 15:16:01 +08:00
parent 6c21953a71
commit 36e1be84a8
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -309,5 +309,17 @@
"allowedVersions": "/^1.*/"
}
],
"customManagers": [
{
"description": "处理 shell 脚本中的镜像",
"customType": "regex",
"managerFilePatterns": ["/(^|/).+\\.sh$/"],
"matchStrings": [
// : https://regexr.com/8jlns
"([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}"
}
],
"prCreation": "immediate"
}