.drone.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. kind: pipeline
  2. type: kubernetes
  3. name: apptj
  4. clone:
  5. disable: true
  6. metadata:
  7. namespace: ci
  8. steps:
  9. - name: clone
  10. image: hub.evbj.easou.com/dev/alpine-git:20200622
  11. commands:
  12. - git clone --depth=1 $DRONE_GIT_HTTP_URL .
  13. - name: build
  14. image: plugins/docker
  15. settings:
  16. username: admin
  17. password: Easou2)1*
  18. insecure: true
  19. mirror: https://tfstj46s.mirror.aliyuncs.com
  20. registry: hub.evbj.easou.com
  21. repo: hub.evbj.easou.com/bi/${DRONE_REPO_NAME}
  22. tag: v1base #op/tag:v2.1.7 http://y.easou.com/
  23. - name: success
  24. image: hub.evbj.easou.com/dev/drone-wechat:20200622
  25. settings:
  26. corpid: ww419ee4063735e1c0
  27. corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
  28. agent_id: 1000004
  29. title: "Pipeline ${DRONE_REPO_NAME} Success"
  30. description: "${DRONE_BUILD_LINK} 部署完成"
  31. msg_url: ${DRONE_BUILD_LINK}
  32. btn_txt: "否"
  33. when:
  34. status:
  35. - success
  36. - name: failure
  37. image: hub.evbj.easou.com/dev/drone-wechat:20200622
  38. settings:
  39. corpid: ww419ee4063735e1c0
  40. corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
  41. agent_id: 1000004
  42. title: "Pipeline ${DRONE_REPO_NAME} Failure"
  43. description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
  44. msg_url: ${DRONE_BUILD_LINK}
  45. btn_txt: "否"
  46. when:
  47. status:
  48. - failure