ci: 为 clone 步骤配置隐式凭据,以支持私有仓库拉取
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi committed 2026-09-11 11:35:36 +08:00
1 parent 3a7665a881
commit 6e29c6da55
1 file changed
+3 -1
+3 -1
View File
@@ -19,9 +19,11 @@ steps:
- name: clone
image: alpine/git
commands:
- "cat <<EOF > /root/.netrc\nmachine git.seahi.me login oauth2 password ${DRONE_GIT_PASSWORD}\nEOF"
- "chmod 600 /root/.netrc"
- "git config --global http.version HTTP/1.1"
- "git config --global protocol.version 1"
- "git clone --depth=1 https://git.seahi.me/seahi/blogflare.git ."
- "git clone --depth=1 ${DRONE_REMOTE_URL} ."
- "git checkout -qf ${DRONE_COMMIT_SHA}"
- name: install