|
@@ -4,8 +4,7 @@ clone:
|
|
depth: 1
|
|
depth: 1
|
|
|
|
|
|
steps:
|
|
steps:
|
|
-# 依赖安装、打包
|
|
|
|
-- name: build
|
|
|
|
|
|
+- name: 打包
|
|
image: reg.weipaitang.com/drone-plugin/yarn
|
|
image: reg.weipaitang.com/drone-plugin/yarn
|
|
volumes:
|
|
volumes:
|
|
- name: cache
|
|
- name: cache
|
|
@@ -14,16 +13,14 @@ steps:
|
|
- yarn
|
|
- yarn
|
|
- yarn build
|
|
- yarn build
|
|
|
|
|
|
-# 部署
|
|
|
|
-- name: deploy
|
|
|
|
|
|
+- name: 部署
|
|
image: reg.weipaitang.com/drone-plugin/ansible
|
|
image: reg.weipaitang.com/drone-plugin/ansible
|
|
pull: always
|
|
pull: always
|
|
volumes:
|
|
volumes:
|
|
- name: cache
|
|
- name: cache
|
|
path: /drone/src/dist
|
|
path: /drone/src/dist
|
|
|
|
|
|
-# 成功通知
|
|
|
|
-- name: notify-success
|
|
|
|
|
|
+- name: 成功通知
|
|
image: reg.weipaitang.com/drone-plugin/ding-talk
|
|
image: reg.weipaitang.com/drone-plugin/ding-talk
|
|
pull: always
|
|
pull: always
|
|
settings:
|
|
settings:
|
|
@@ -34,8 +31,7 @@ steps:
|
|
when:
|
|
when:
|
|
status: success
|
|
status: success
|
|
|
|
|
|
-# 失败通知
|
|
|
|
-- name: notify-failure
|
|
|
|
|
|
+- name: 失败通知
|
|
image: reg.weipaitang.com/drone-plugin/ding-talk
|
|
image: reg.weipaitang.com/drone-plugin/ding-talk
|
|
pull: always
|
|
pull: always
|
|
settings:
|
|
settings:
|