From 09b3a9b7fde309a9e3ea274bc4f049b5338b6d85 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Wed, 19 Jan 2022 22:24:29 +0800 Subject: [PATCH] update ci development constants --- .drone.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 536e450..9dd1af4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -47,10 +47,7 @@ steps: # volumes: # - name: cache # path: /root/.m2 - commands: - - npm config set registry http://registry.npm.taobao.org - - npm i - - npm run build:test + commands: *DEVELOPMENT_CMD - name: rebuild-cache image: drillster/drone-volume-cache @@ -70,19 +67,19 @@ steps: path: /root/.ssh/ settings: host: *DEVELOPMENT_HOST - port: 22 + port: *DEVELOPMENT_PORT username: root key_path: /root/.ssh/id_rsa rm: true # true则会删除目标目录重建 - target: /home/checkwork - source: dist/* + target: *DEVELOPMENT_SCP_TARGET + source: *DEVELOPMENT_SCP_SOURCE strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target - name: notify-wechatwork image: fifsky/drone-wechat-work pull: if-not-exists settings: - url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 + url: *NOTIFY_WECHATROBOT_WEBHOOK msgtype: markdown content: | {{if eq .Status "success" }}