1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-01-30 00:38:22 +08:00
parent 3fbc30ae04
commit dbf3fac2c8

View File

@@ -19,7 +19,7 @@ variables:
steps: steps:
# ========== 1. 替代clone拉取代码核心依赖 ========== # ========== 1. 替代clone拉取代码核心依赖 ==========
prepare: prepare:
image: debian:bookworm-slim image: alpine/git
environment: environment:
# WOODPECKER_SSH_KEY: # WOODPECKER_SSH_KEY:
# from_secret: WOODPECKER_SSH_KEY # from_secret: WOODPECKER_SSH_KEY
@@ -35,13 +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 # - 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-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 # deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" > /etc/apt/sources.list
# 3. 更新软件源缓存使新源生效 # # 3. 更新软件源缓存使新源生效
- apt update -y # - apt update -y
- apt install -y --no-install-recommends ca-certificates 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/*