From b34b5c5d26f490971c3d153ae6f4a310549f0ce2 Mon Sep 17 00:00:00 2001 From: xinian Date: Sun, 8 Mar 2026 17:23:37 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=20Debian=20=E9=95=9C=E5=83=8F=E6=BA=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/my-first-workflow.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.woodpecker/my-first-workflow.yaml b/.woodpecker/my-first-workflow.yaml index 0c2275e20..99eaa2760 100644 --- a/.woodpecker/my-first-workflow.yaml +++ b/.woodpecker/my-first-workflow.yaml @@ -77,10 +77,16 @@ steps: GO111MODULE: on GOSUMDB: off commands: + # 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 + # 1. 更新源(用 apt-get 消除 CLI 不稳定警告,适配 CI) - apt-get update -y # 2. 安装正确的 upx 包(Debian 中包名是 upx-ucl,不是 upx) - apt-get install -y upx-ucl + - cd blazing - mkdir -p build - BIN_NAME="login_${CI_PIPELINE_CREATED}"