feat: .devops/jianmu.test.yml

This commit is contained in:
jianmu 2024-01-26 14:10:30 +08:00
parent bbb3d5c32b
commit 9f071a99d5
1 changed files with 38 additions and 0 deletions

38
.devops/jianmu.test.yml Normal file
View File

@ -0,0 +1,38 @@
version: 2
name: jianmu.test
description: ""
global:
concurrent: 1
workflow:
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '""https://gitee.com/jianmu-dev/jianmu.git'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: shell_0
name: shell
image: alpine:3.16.0
env:
BRANCH: '"test"'
script:
- echo Hello 建木
- "echo 目录: ${DIR}"
- "echo 分支: ${BRANCH}"
- "echo 标签: ${TAG}"
- "echo id: ${COMMIT_ID}"
needs:
- git_clone_0
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- shell_0