.drone.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. kind: pipeline
  2. type: kubernetes
  3. name: eavideo-admin
  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. custom_dns: 223.5.5.5
  20. mirror: https://ci7pm4nx.mirror.aliyuncs.com
  21. registry: hub.evbj.easou.com
  22. repo: hub.evbj.easou.com/rec/${DRONE_REPO_NAME}
  23. tag: v1base
  24. - name: success
  25. image: hub.evbj.easou.com/dev/drone-wechat:20200622
  26. settings:
  27. corpid: ww419ee4063735e1c0
  28. corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
  29. agent_id: 1000004
  30. title: "Pipeline ${DRONE_REPO_NAME} Success"
  31. description: "${DRONE_BUILD_LINK} 部署完成"
  32. msg_url: ${DRONE_BUILD_LINK}
  33. btn_txt: "否"
  34. when:
  35. status:
  36. - success
  37. - name: failure
  38. image: hub.evbj.easou.com/dev/drone-wechat:20200622
  39. settings:
  40. corpid: ww419ee4063735e1c0
  41. corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
  42. agent_id: 1000004
  43. title: "Pipeline ${DRONE_REPO_NAME} Failure"
  44. description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
  45. msg_url: ${DRONE_BUILD_LINK}
  46. btn_txt: "否"
  47. when:
  48. status:
  49. - failure