diff --git a/.woodpecker/my-first-workflow.yaml b/.woodpecker/my-first-workflow.yaml index 5ae232522..67025fd2a 100644 --- a/.woodpecker/my-first-workflow.yaml +++ b/.woodpecker/my-first-workflow.yaml @@ -19,7 +19,7 @@ variables: steps: # ========== 1. 替代clone:拉取代码(核心依赖) ========== prepare: - image: debian:bookworm-slim + image: alpine/git environment: # WOODPECKER_SSH_KEY: # from_secret: WOODPECKER_SSH_KEY @@ -35,13 +35,13 @@ steps: # - cp /etc/apt/sources.list /etc/apt/sources.list.bak # 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑) - - echo "deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware - deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware - deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" > /etc/apt/sources.list + # - echo "deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware + # deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware + # deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" > /etc/apt/sources.list - # 3. 更新软件源缓存(使新源生效) - - apt update -y - - apt install -y --no-install-recommends ca-certificates curl git openssh-client openssl libssl-dev + # # 3. 更新软件源缓存(使新源生效) + # - apt update -y + # - apt install -y --no-install-recommends ca-certificates curl git openssh-client openssl libssl-dev # # 清理旧SSH文件,严格配置权限 # - rm -rf /root/.ssh/*