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() {