diff --git a/renovate.json b/renovate.json index 0e848299c..8ecd01419 100644 --- a/renovate.json +++ b/renovate.json @@ -309,5 +309,17 @@ "allowedVersions": "/^1.*/" } ], + "customManagers": [ + { + "description": "处理 shell 脚本中的镜像", + "customType": "regex", + "managerFilePatterns": ["/(^|/).+\\.sh$/"], + "matchStrings": [ + // 调试正则表达式: https://regexr.com/8jlns + "([\\S]+=)(?[\\S]+):(?[\\S]+)" + ], + "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}" + } + ], "prCreation": "immediate" }