feat: .devops/jianmu.test.yml
This commit is contained in:
parent
bbb3d5c32b
commit
9f071a99d5
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue