ci: 显式配置 clone 步骤使用 HTTP/1.1 协议以解决 bad pack header 问题
continuous-integration/drone/push Build encountered an error

This commit is contained in:
seahi committed 2026-09-11 09:57:28 +08:00
1 parent ce7e88300f
commit d665df20a6
1 file changed
+15
+15
View File
@@ -2,6 +2,9 @@ kind: pipeline
type: docker
name: default
clone:
disable: true
node:
name: pve
@@ -13,8 +16,20 @@ trigger:
- custom
steps:
- name: clone
image: alpine/git
commands:
- git config --global http.version HTTP/1.1
- git config --global http.postBuffer 524288000
- git init
- git remote add origin ${DRONE_REMOTE_URL}
- git fetch --depth=50 origin +refs/heads/${DRONE_COMMIT_BRANCH}:
- git checkout -qf ${DRONE_COMMIT_SHA}
- name: install
image: node:22-slim
depends_on:
- clone
volumes:
- name: pnpm-store
path: /root/.local/share/pnpm/store