A weechat docker image
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.

102 lines
2.3 KiB

  1. kind: pipeline
  2. name: docker_build
  3. type: docker
  4. steps:
  5. - name: master_build
  6. image: plugins/docker:latest
  7. settings:
  8. mirror: https://mirror.gcr.io
  9. repo: j33r/weechat
  10. dockerfile: Dockerfile
  11. tags:
  12. - latest
  13. - stable
  14. - ${DRONE_COMMIT_SHA}
  15. username: j33r
  16. password:
  17. from_secret: DOCKER_HUB_TOKEN
  18. when:
  19. branch:
  20. - master
  21. event:
  22. exclude:
  23. - pull_request
  24. - name: dev_build
  25. image: plugins/docker:latest
  26. settings:
  27. mirror: https://mirror.gcr.io
  28. repo: j33r/weechat
  29. dockerfile: Dockerfile
  30. tags:
  31. - dev
  32. - ${DRONE_COMMIT_SHA}
  33. username: j33r
  34. password:
  35. from_secret: DOCKER_HUB_TOKEN
  36. when:
  37. branch:
  38. - dev
  39. event:
  40. exclude:
  41. - pull_request
  42. ---
  43. kind: pipeline
  44. name: test
  45. type: docker
  46. steps:
  47. - name: test
  48. image: plugins/docker:latest
  49. settings:
  50. mirror: https://mirror.gcr.io
  51. repo: j33r/weechat
  52. tags: latest
  53. dockerfile: Dockerfile
  54. username: j33r
  55. password:
  56. from_secret: DOCKER_HUB_TOKEN
  57. dry_run: true
  58. when:
  59. event:
  60. - pull_request
  61. ---
  62. kind: pipeline
  63. name: mirroring
  64. type: docker
  65. steps:
  66. - name: mirroring_c0de.in
  67. pull: always
  68. image: j33r/git-mirror:latest
  69. failure: ignore
  70. environment:
  71. GIT_MIRROR_USER: jee
  72. GIT_MIRROR_TOKEN:
  73. from_secret: C0DEIN_TOKEN
  74. GIT_MIRROR_REPO: git.c0de.in/jee/docker-weechat.git
  75. when:
  76. event:
  77. exclude:
  78. - pull_request
  79. - name: mirroring_framagit
  80. pull: always
  81. image: j33r/git-mirror:latest
  82. failure: ignore
  83. environment:
  84. GIT_MIRROR_USER: jee
  85. GIT_MIRROR_TOKEN:
  86. from_secret: FRAMAGIT_TOKEN
  87. GIT_MIRROR_REPO: framagit.org/jee/docker-weechat.git
  88. when:
  89. event:
  90. exclude:
  91. - pull_request