From 2797cd54c1d50ada5f11d58c8244e892038223aa Mon Sep 17 00:00:00 2001 From: "shao.jiacheng" Date: Wed, 14 Jul 2021 17:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0cicd=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E7=9A=84dsl=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cicd.dsl | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 cicd.dsl diff --git a/cicd.dsl b/cicd.dsl new file mode 100644 index 0000000..6072f9c --- /dev/null +++ b/cicd.dsl @@ -0,0 +1,56 @@ +workflow: + name: jianmu-docs ci/cd + ref: jianmu_docs_site_cicd + description: 建木docs ci/cd + Start: + type: start + targets: + - CLone_Site_UI + CLone_Site_UI: + type: git:v1.0 + sources: + - Start + targets: + - Node_Build + param: + workspace: jianmu-docs + remote_url: https://gitee.com/jianmu_dev/jianmu-docs.git + commit_branch: master + netrc_machine: gitee.com + netrc_username: ((gitee.username)) + netrc_password: ((gitee.password)) + Node_Build: + type: node_build:14.16.1-alpine3.13 + sources: + - CLone_Site_UI + targets: + - Update_Resoure + param: + workspace: jianmu-docs + Update_Resoure: + type: ssh_update:v1.0 + sources: + - Node_Build + targets: + - Send_Message + param: + ssh_private_key: ((private_key.alixg)) + ssh_host: root@47.243.164.48 + remote_file: /etc/nginx/docs + local_file: jianmu-docs/.vitepress/dist + Send_Message: + type: qywx_notice:v1.0 + sources: + - Update_Resoure + targets: + - End + param: + bot_webhook_url: ((charbot.webhook_url)) + mentioned_moblie_list: "[]" + text_content: "docs服务前端资源更新完成" + msgtype: "text" + mentioned_list: "[]" + End: + type: end + sources: + - Send_Message -- Gitee