Compare commits
2 Commits
179e50f94d
...
3fbc30ae04
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fbc30ae04 | ||
|
|
2b63e3b237 |
@@ -19,7 +19,7 @@ variables:
|
|||||||
steps:
|
steps:
|
||||||
# ========== 1. 替代clone:拉取代码(核心依赖) ==========
|
# ========== 1. 替代clone:拉取代码(核心依赖) ==========
|
||||||
prepare:
|
prepare:
|
||||||
image: debian:bookworm
|
image: debian:bookworm-slim
|
||||||
environment:
|
environment:
|
||||||
# WOODPECKER_SSH_KEY:
|
# WOODPECKER_SSH_KEY:
|
||||||
# from_secret: WOODPECKER_SSH_KEY
|
# from_secret: WOODPECKER_SSH_KEY
|
||||||
@@ -35,18 +35,13 @@ steps:
|
|||||||
# - cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
# - cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||||
|
|
||||||
# 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑)
|
# 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑)
|
||||||
- |
|
- echo "deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
|
||||||
cat > /etc/apt/sources.list << EOF
|
|
||||||
# 阿里云Debian 12 (bookworm) 镜像源
|
|
||||||
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-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" > /etc/apt/sources.list
|
||||||
deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# 3. 更新软件源缓存(使新源生效)
|
# 3. 更新软件源缓存(使新源生效)
|
||||||
- apt update -y
|
- apt update -y
|
||||||
- apt install -y --no-install-recommends curl git openssh-client openssl libssl-dev
|
- apt install -y --no-install-recommends ca-certificates curl git openssh-client openssl libssl-dev
|
||||||
|
|
||||||
# # 清理旧SSH文件,严格配置权限
|
# # 清理旧SSH文件,严格配置权限
|
||||||
# - rm -rf /root/.ssh/*
|
# - rm -rf /root/.ssh/*
|
||||||
@@ -70,6 +65,7 @@ steps:
|
|||||||
- git config --global core.compression 0
|
- git config --global core.compression 0
|
||||||
- export GIT_CONFIG_URL="https://cnb:$CNB_ACCK@cnb.cool/blzing/blazing"
|
- export GIT_CONFIG_URL="https://cnb:$CNB_ACCK@cnb.cool/blzing/blazing"
|
||||||
- echo "🔍 $CNB_ACCK调试: $GIT_CONFIG_URL"
|
- echo "🔍 $CNB_ACCK调试: $GIT_CONFIG_URL"
|
||||||
|
- git config --global http.sslVerify false
|
||||||
- git clone --depth 1 --progress -v $GIT_CONFIG_URL
|
- git clone --depth 1 --progress -v $GIT_CONFIG_URL
|
||||||
# 拉取代码
|
# 拉取代码
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user