feat: .devops/build_and_check.yml
This commit is contained in:
parent
7865c7af87
commit
2da2f0be38
|
@ -0,0 +1,67 @@
|
|||
version: 2
|
||||
name: build_and_check
|
||||
description: ""
|
||||
global:
|
||||
concurrent: 1
|
||||
trigger:
|
||||
webhook: gitlink@1.0.0
|
||||
event:
|
||||
- ref: pr
|
||||
ruleset:
|
||||
- param-ref: action
|
||||
operator: EQ
|
||||
value: "'opened'"
|
||||
ruleset-operator: AND
|
||||
workflow:
|
||||
- ref: start
|
||||
name: 开始
|
||||
task: start
|
||||
- ref: end
|
||||
name: 结束
|
||||
task: end
|
||||
needs:
|
||||
- dingtalk_notice_text_0
|
||||
- ref: shell_0
|
||||
name: 安装依赖包
|
||||
image: docker.jianmuhub.com/library/alpine:3.17.0
|
||||
script:
|
||||
- echo "success"
|
||||
needs:
|
||||
- start
|
||||
- ref: git_clone_0
|
||||
name: git clone
|
||||
task: git_clone@1.2.6
|
||||
input:
|
||||
remote_url: '""'
|
||||
ref: '"refs/heads/master"'
|
||||
commit_id: '""'
|
||||
depth: 1
|
||||
needs:
|
||||
- start
|
||||
- ref: shell_1
|
||||
name: 检测代码
|
||||
image: docker.jianmuhub.com/library/alpine:3.17.0
|
||||
script:
|
||||
- sh ../check_code.sh
|
||||
needs:
|
||||
- git_clone_0
|
||||
- ref: dingtalk_notice_text_0
|
||||
name: 钉钉通知-文本
|
||||
task: dingtalk_notice_text@1.0.2
|
||||
input:
|
||||
boot_webhook_url: ((ding_notice.webhook))
|
||||
secret: ((ding_notice.secret))
|
||||
msg_text: '""'
|
||||
at_user_ids: '"[]"'
|
||||
at_mobiles: '"[]"'
|
||||
needs:
|
||||
- shell_2
|
||||
- ref: shell_2
|
||||
name: 打包完成
|
||||
image: docker.jianmuhub.com/library/alpine:3.17.0
|
||||
script:
|
||||
- echo "build success"
|
||||
needs:
|
||||
- shell_0
|
||||
- shell_1
|
||||
|
Loading…
Reference in New Issue