fix(ci): git_setup 身份改 --global——chart 步骤在克隆的 chart 仓 commit,本地 config 只落当前仓,gitops-tools 镜像无全局身份会 fatal unable to auto-detect email
This commit is contained in:
1 parent
ecd059746a
commit
609f08d2a3
1 file changed
+4
-2
+4
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user