From 3fbc30ae04521b762540780a6f1882d120d35a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Fri, 30 Jan 2026 00:27:54 +0800 Subject: [PATCH] 1 --- .woodpecker/my-first-workflow.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.woodpecker/my-first-workflow.yaml b/.woodpecker/my-first-workflow.yaml index 7823d6261..5ae232522 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 + image: debian:bookworm-slim environment: # WOODPECKER_SSH_KEY: # from_secret: WOODPECKER_SSH_KEY @@ -35,14 +35,9 @@ steps: # - cp /etc/apt/sources.list /etc/apt/sources.list.bak # 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑) - - | - cat > /etc/apt/sources.list << EOF - # 阿里云Debian 12 (bookworm) 镜像源 - deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware + - 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/ bookworm-backports main contrib non-free non-free-firmware - deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware - EOF + deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" > /etc/apt/sources.list # 3. 更新软件源缓存(使新源生效) - apt update -y