From 36e1be84a8030974a7abd21a5c3ccac1511a0eac Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:16:01 +0800 Subject: [PATCH] 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 --- renovate.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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" }