.drone.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. kind: pipeline
  2. type: docker
  3. name: tmp-group-admin
  4. clone:
  5. depth: 1
  6. disable: true
  7. steps:
  8. - name: clone
  9. image: alpine/git
  10. commands:
  11. - git clone -b develop http://192.168.1.8:3000/duanxiaoduan/tmr-group-admin.git
  12. - cp -R tmr-group-admin/* ./
  13. - name: build
  14. image: plugins/docker
  15. volumes:
  16. - name: hosts
  17. path: /etc/hosts
  18. - name: docker-ca
  19. path: /etc/docker
  20. - name: docker-sock
  21. path: /var/run/docker.sock
  22. settings:
  23. dockerfile: /drone/src/Dockerfile
  24. username:
  25. from_secret: aliyun_name
  26. password:
  27. from_secret: aliyun_password
  28. repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/tmr-group-admin
  29. registry: registry.cn-hangzhou.aliyuncs.com
  30. tags: [ 1.0.0,latest ]
  31. trigger:
  32. branch:
  33. include:
  34. - develop
  35. event:
  36. include:
  37. - push
  38. volumes:
  39. - name: host
  40. host:
  41. path: /etc/host
  42. - name: docker-ca
  43. host:
  44. path: /ect/docker
  45. - name: docker-sock
  46. host:
  47. path: /var/run/docker.sock