编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 10:14:04 +08:00
committed by cnb
parent ce4a69537e
commit 0a3d81050a

View File

@@ -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 "✅ 代码拉取完成"