.drone.yml 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. kind: pipeline
  2. type: docker
  3. name: kptTmrGroup
  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://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
  12. # - ls -l
  13. # - pwd
  14. - name: build
  15. image: plugins/docker:20.14.2
  16. volumes:
  17. - name: hosts
  18. path: /etc/hosts
  19. - name: docker-ca
  20. path: /etc/docker
  21. - name: docker-sock
  22. path: /var/run/docker.sock
  23. settings:
  24. #dockerfile: /drone/src/kpt-tmr-group/Dockerfile
  25. username:
  26. from_secret: aliyuncs_username
  27. password:
  28. from_secret: aliyuncs_password
  29. repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr-group
  30. registry: registry.cn-hangzhou.aliyuncs.com
  31. tags: [ 1.0.3,latest ]
  32. trigger:
  33. branch:
  34. include:
  35. - develop
  36. event:
  37. include:
  38. - push
  39. volumes:
  40. - name: docker-ca
  41. host:
  42. path: /etc/docker
  43. - name: docker-sock
  44. host:
  45. path: /var/run/docker.sock