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:
parent
6c21953a71
commit
36e1be84a8
@ -309,5 +309,17 @@
|
|||||||
"allowedVersions": "/^1.*/"
|
"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"
|
"prCreation": "immediate"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user