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: # volumes:
# - name: cache # - name: cache
# path: /root/.m2 # path: /root/.m2
commands: commands: *DEVELOPMENT_CMD
- npm config set registry http://registry.npm.taobao.org
- npm i
- npm run build:test
- name: rebuild-cache - name: rebuild-cache
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
@ -70,19 +67,19 @@ steps:
path: /root/.ssh/ path: /root/.ssh/
settings: settings:
host: *DEVELOPMENT_HOST host: *DEVELOPMENT_HOST
port: 22 port: *DEVELOPMENT_PORT
username: root username: root
key_path: /root/.ssh/id_rsa key_path: /root/.ssh/id_rsa
rm: true # true则会删除目标目录重建 rm: true # true则会删除目标目录重建
target: /home/checkwork target: *DEVELOPMENT_SCP_TARGET
source: dist/* source: *DEVELOPMENT_SCP_SOURCE
strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target
- name: notify-wechatwork - name: notify-wechatwork
image: fifsky/drone-wechat-work image: fifsky/drone-wechat-work
pull: if-not-exists pull: if-not-exists
settings: settings:
url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 url: *NOTIFY_WECHATROBOT_WEBHOOK
msgtype: markdown msgtype: markdown
content: | content: |
{{if eq .Status "success" }} {{if eq .Status "success" }}

Loading…
Cancel
Save