Use mirror image sources in Woodpecker pipeline
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user