refactor: .devops/未命名项目.yml

This commit is contained in:
yystopf 2023-04-08 15:17:32 +08:00 committed by jianmu
parent 2eae762de0
commit 0b815c6987
1 changed files with 13 additions and 21 deletions

View File

@ -7,6 +7,19 @@ workflow:
- ref: start
name: 开始
task: start
- ref: golang_for_giteahat_0
name: golang_for_giteahat
on-failure: ignore
task: yystopf/golang_for_giteahat@0.0.2
input:
workspace: git_clone_0.git_path
needs:
- git_clone_0
- ref: end
name: 结束
task: end
needs:
- golang_for_giteahat_0
- ref: git_clone_0
name: git clone
on-failure: ignore
@ -18,25 +31,4 @@ workflow:
depth: 1
needs:
- start
- ref: golang_for_giteahat_0
name: golang_for_giteahat
task: yystopf/golang_for_giteahat@0.0.2
input:
workspace: git_clone_0.git_path
cmd:
- echo $WORKSPACE
- cd $WORKSPACE
- go mod tidy
- go mod vendor
- go build -o gitea main.go
- ls -la
- echo done
needs:
- git_clone_0
- ref: end
name: 结束
task: end
needs:
- golang_for_giteahat_0