Browse Source

update ci development constants

master
wally 4 years ago
parent
commit
09b3a9b7fd
  1. 13
      .drone.yml

13
.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" }}

Loading…
Cancel
Save