Selaa lähdekoodia

Merge remote-tracking branch 'origin/dev' into dev

zl 5 vuotta sitten
vanhempi
sitoutus
73a10150d6
1 muutettua tiedostoa jossa 8 lisäystä ja 16 poistoa
  1. 8 16
      .drone.yml

+ 8 - 16
.drone.yml

@@ -4,8 +4,7 @@ clone:
   depth: 1
 
 steps:
-# 依赖安装、打包
-- name: build
+- name: 打包
   image: reg.weipaitang.com/drone-plugin/yarn
   volumes:
   - name: cache
@@ -14,35 +13,28 @@ steps:
   - yarn
   - yarn build
 
-# 部署
-- name: deploy
+- name: 部署
   image: reg.weipaitang.com/drone-plugin/ansible
   pull: always
   volumes:
   - name: cache
     path: /drone/src/dist
 
-# 成功通知
-- name: notify-success
-  image: reg.weipaitang.com/drone-plugin/ding-talk
-  pull: always
+- name: 成功通知
+  image: reg.weipaitang.com/drone-plugin/work-wechat-notify
   settings:
     token:
       from_secret: token
-    notice_title: CI 构建通知
-    title: 构建成功 ✅
+    title: 发布成功 ✅
   when:
     status: success
 
-# 失败通知
-- name: notify-failure
-  image: reg.weipaitang.com/drone-plugin/ding-talk
-  pull: always
+- name: 失败通知
+  image: reg.weipaitang.com/drone-plugin/work-wechat-notify
   settings:
     token:
       from_secret: token
-    notice_title: CI 构建通知
-    title: 构建失败 ❌
+    title: 发布失败 ❌
   when:
     status:  failure