Use mirror image sources in Woodpecker pipeline

This commit is contained in:
昔念
2026-04-18 12:24:34 +08:00
parent 819d5f667b
commit 2b92baf530

View File

@@ -13,7 +13,7 @@ skip_clone: true
steps:
# ========== 1. 替代clone拉取代码核心依赖 ==========
prepare:
image: alpine/git
image: docker.1ms.run/alpine/git
environment:
# WOODPECKER_SSH_KEY:
# from_secret: WOODPECKER_SSH_KEY
@@ -70,7 +70,7 @@ steps:
# ========== 4. 编译Logic服务完全参考GitHub Actions编译配置 ==========
build_logic:
image: golang:1.25
image: docker.1ms.run/golang:1.25
depends_on: [prepare]
environment:
CGO_ENABLED: 0
@@ -142,7 +142,7 @@ steps:
# ========== 6. SCP推送产物依赖编译+配置解析 ==========
scp-exe-to-servers: # 与fetch-deploy-config同级缩进2个空格
image: appleboy/drone-scp:1.6.2 # 子元素缩进4个空格
image: docker.1ms.run/appleboy/drone-scp:1.6.2 # 子元素缩进4个空格
settings: # 子元素缩进4个空格
host: &ssh_host 43.248.3.21
port: &ssh_port 22
@@ -158,7 +158,7 @@ steps:
depends_on: # 子元素缩进4个空格
- build_logic # depends_on内的项缩进6个空格
start-login-logic:
image: appleboy/drone-ssh:1.6.2
image: docker.1ms.run/appleboy/drone-ssh:1.6.2
depends_on: [scp-exe-to-servers]
settings: # 子元素缩进4个空格
host: *ssh_host