浏览代码

更新 '.drone.yml'

robert 5 年之前
父节点
当前提交
b8451667b0
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      .drone.yml

+ 27 - 0
.drone.yml

@@ -33,3 +33,30 @@ steps:
      - python ppctl.py -d
      # - python ppctl.py -c
 
+ - name: success
+   image: clem109/drone-wechat
+   settings:
+     corpid: ww419ee4063735e1c0
+     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
+     agent_id: 1000004
+     title: "Pipeline ${DRONE_REPO_NAME} Success"
+     description: "${DRONE_BUILD_LINK} 部署完成"
+     msg_url: ${DRONE_BUILD_LINK}
+     btn_txt: "否"
+   when:
+     status:
+     - success
+
+ - name: failure
+   image: clem109/drone-wechat
+   settings:
+     corpid: ww419ee4063735e1c0
+     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
+     agent_id: 1000004
+     title: "Pipeline ${DRONE_REPO_NAME} Failure"
+     description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
+     msg_url: ${DRONE_BUILD_LINK}
+     btn_txt: "否"
+   when:
+     status:
+     - failure