ci: 添加阿里云 Debian 镜像源配置
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-08 17:23:37 +08:00
committed by cnb
parent c4ea26e443
commit b34b5c5d26

View File

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