forked from yystopf/gitea_hat
refactor: .devops/未命名项目.yml
This commit is contained in:
parent
2eae762de0
commit
0b815c6987
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue