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

This commit is contained in:
raojing 2022-08-26 11:03:52 +08:00 committed by jianmu
parent 8fb55cd9f6
commit c147ac6bf0
1 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,77 @@
version: 2
name: 未命名项目
description: ""
global:
concurrent: false
trigger:
webhook: gitlink@1.0.0
event:
- ref: pr
ruleset:
- param-ref: merged
operator: EQ
value: "true"
- param-ref: target_branch
operator: EQ
value: '"master"'
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: 克隆代码
task: git_clone@1.2.5
input:
remote_url: '""'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: nodejs_build_0
name: 打包
task: nodejs_build@1.4.0-16.13.0
input:
workspace: '""'
build_action: '"build"'
build_arg: '""'
registry_url: '""'
disturl_url: '""'
sass_binary_site_url: '""'
package_management_type: '"yarn"'
vc_package_dir: '"."'
needs:
- git_clone_0
- ref: scp_resouce_0
name: 替换远程服务器的文件
task: scp_resouce@1.2.1
input:
ssh_private_key: ((ssh.ssh_secret))
ssh_ip: '"170"'
ssh_port: '"22"'
ssh_user: '"root"'
remote_file: '"19"'
local_file: '"10"'
needs:
- nodejs_build_0
- ref: feishu_notice_interactive_0
name: 飞书通知-消息卡片
task: feishu_notice_interactive@1.0.4
input:
bot_webhook_url: ((ssh.ssh_secret))
msg_title: '""'
app_id: ((xxx.xxx))
app_secret: ((xxx.xxx))
image_url: '""'
msg_text: '""'
msg_markdown: '""'
msg_at_phone_list: '"[]"'
needs:
- scp_resouce_0
- ref: end
name: 结束
task: end
needs:
- feishu_notice_interactive_0