From 609f08d2a3c6dfb137b18f9ecfb4f1df686cbda9 Mon Sep 17 00:00:00 2001 From: chenhuan Date: Tue, 3 Nov 2026 01:52:40 +0000 Subject: [PATCH] =?UTF-8?q?fix(ci):=20git=5Fsetup=20=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E6=94=B9=20--global=E2=80=94=E2=80=94chart=20=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E5=9C=A8=E5=85=8B=E9=9A=86=E7=9A=84=20chart=20?= =?UTF-8?q?=E4=BB=93=20commit,=E6=9C=AC=E5=9C=B0=20config=20=E5=8F=AA?= =?UTF-8?q?=E8=90=BD=E5=BD=93=E5=89=8D=E4=BB=93,gitops-tools=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=97=A0=E5=85=A8=E5=B1=80=E8=BA=AB=E4=BB=BD=E4=BC=9A?= =?UTF-8?q?=20fatal=20unable=20to=20auto-detect=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/promote.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/promote.sh b/ci/promote.sh index 847112f..af84db8 100755 --- a/ci/promote.sh +++ b/ci/promote.sh @@ -108,8 +108,10 @@ run() { git_setup() { git config --global url."http://git.mixingx.local/".insteadOf "git@git.mixingx.local:" 2>/dev/null || true - git config user.name "Drone Release" - git config user.email "drone-release@mixingx.local" + # 身份必须 --global:chart 步骤在克隆出的 chart 仓里 commit(pin 在 deploy 仓), + # 本地 config 只落在当前仓,克隆仓会因无 user.name/email 而 "unable to auto-detect email" + git config --global user.name "Drone Release" + git config --global user.email "drone-release@mixingx.local" } require_env() {