Simple scheduling for short-running Docker containers https://blog.iamthefij.com/2018/11/19/introducing-dockron-scheduling/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. kind: pipeline
  2. name: test
  3. steps:
  4. - name: build
  5. image: golang:1.12
  6. commands:
  7. - make build
  8. ---
  9. kind: pipeline
  10. name: publish
  11. depends_on:
  12. - test
  13. trigger:
  14. event:
  15. - push
  16. - tag
  17. refs:
  18. - refs/heads/master
  19. - refs/tags/v*
  20. steps:
  21. - name: build
  22. image: golang:1.12
  23. commands:
  24. - make build-linux-static
  25. - name: push image - arm
  26. image: plugins/docker
  27. settings:
  28. repo: iamthefij/dockron
  29. auto_tag: true
  30. auto_tag_suffix: linux-arm
  31. username:
  32. from_secret: docker_username
  33. password:
  34. from_secret: docker_password
  35. build_args:
  36. - ARCH=arm
  37. - REPO=arm32v7
  38. - name: push image - arm64
  39. image: plugins/docker
  40. settings:
  41. repo: iamthefij/dockron
  42. auto_tag: true
  43. auto_tag_suffix: linux-arm64
  44. username:
  45. from_secret: docker_username
  46. password:
  47. from_secret: docker_password
  48. build_args:
  49. - ARCH=arm64
  50. - REPO=arm64v8
  51. - name: push image - amd64
  52. image: plugins/docker
  53. settings:
  54. repo: iamthefij/dockron
  55. auto_tag: true
  56. auto_tag_suffix: linux-amd64
  57. username:
  58. from_secret: docker_username
  59. password:
  60. from_secret: docker_password
  61. - name: publish manifest
  62. image: plugins/manifest
  63. settings:
  64. spec: manifest.tmpl
  65. auto_tag: true
  66. ignore_missing: true
  67. username:
  68. from_secret: docker_username
  69. password:
  70. from_secret: docker_password