编辑文件 my-first-workflow.yaml
This commit is contained in:
@@ -19,19 +19,18 @@ steps:
|
||||
# ========== 1. 替代clone:拉取代码(核心依赖) ==========
|
||||
|
||||
commands:
|
||||
|
||||
# 系统初始化
|
||||
- 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
|
||||
|
||||
# 格式:git clone https://用户名:密码@仓库地址
|
||||
- echo "🔍 ${#GIT_CONFIG_URL}调试: ${GIT_CONFIG_URL}"
|
||||
- echo "🔍 ${#GIT_CONFIG_URL}调试: ${GIT_CONFIG_URL}"
|
||||
|
||||
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
|
||||
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
|
||||
# 拉取代码
|
||||
|
||||
- echo "✅ 代码拉取完成"
|
||||
- echo "✅ 代码拉取完成"
|
||||
|
||||
# # ========== 2. 初始化Go环境(依赖prepare:代码拉取完成) ==========
|
||||
# prepare-go: # 与prepare同级,缩进2个空格
|
||||
|
||||
Reference in New Issue
Block a user