.drone.yml 1.0 KB

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