编辑文件 my-first-workflow.yaml
This commit is contained in:
@@ -8,11 +8,7 @@ when:
|
||||
skip_clone: true
|
||||
|
||||
|
||||
# 全局配置变量(替换占位符即可使用)
|
||||
environment:
|
||||
SCREEN_NAME: "logic_service"
|
||||
REMOTE_EXE_DIR: "/opt/logic"
|
||||
LOG_PATH: "$HOME/run.log"
|
||||
|
||||
|
||||
# 流水线核心步骤:理顺依赖链,确保各步骤依赖正确
|
||||
steps:
|
||||
@@ -24,7 +20,6 @@ steps:
|
||||
from_secret: WOODPECKER_SSH_KEY
|
||||
GIT_CONFIG_URL: "https://cnb:$CNB_ACCK@cnb.cool/blzing/blazing"
|
||||
commands:
|
||||
- export GIT_CONFIG_URL=$${GIT_CONFIG_URL}
|
||||
|
||||
|
||||
# 系统初始化
|
||||
@@ -34,7 +29,7 @@ steps:
|
||||
|
||||
# 格式:git clone https://用户名:密码@仓库地址
|
||||
|
||||
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
|
||||
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
|
||||
# 拉取代码
|
||||
|
||||
- echo "✅ 代码拉取完成"
|
||||
|
||||
Reference in New Issue
Block a user