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}"