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.

115 lines
2.0 KiB

  1. ---
  2. kind: pipeline
  3. name: linting
  4. platform:
  5. os: linux
  6. arch: amd64
  7. steps:
  8. - name: ansible-later
  9. image: xoxys/ansible-later
  10. commands:
  11. - ansible-later
  12. trigger:
  13. ref:
  14. - refs/heads/master
  15. - refs/tags/**
  16. - refs/pull/**
  17. ---
  18. kind: pipeline
  19. name: documentation
  20. platform:
  21. os: linux
  22. arch: amd64
  23. steps:
  24. - name: generate
  25. image: xoxys/ansible-doctor
  26. environment:
  27. ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
  28. ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
  29. ANSIBLE_DOCTOR_LOG_LEVEL: INFO
  30. ANSIBLE_DOCTOR_OUTPUT_DIR: _docs/
  31. ANSIBLE_DOCTOR_ROLE_NAME: ${DRONE_REPO_NAME#*.}
  32. ANSIBLE_DOCTOR_TEMPLATE: hugo-book
  33. - name: publish
  34. image: plugins/gh-pages
  35. settings:
  36. netrc_machine: gitea.rknet.org
  37. pages_directory: _docs/
  38. password:
  39. from_secret: gitea_token
  40. remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}
  41. target_branch: docs
  42. username:
  43. from_secret: gitea_username
  44. when:
  45. ref:
  46. - refs/heads/master
  47. - name: trigger
  48. image: plugins/downstream
  49. settings:
  50. fork: true
  51. repositories:
  52. - ansible/galaxy
  53. server: https://drone.rknet.org
  54. token:
  55. from_secret: drone_token
  56. when:
  57. ref:
  58. - refs/heads/master
  59. trigger:
  60. ref:
  61. - refs/heads/master
  62. - refs/tags/**
  63. - refs/pull/**
  64. ---
  65. kind: pipeline
  66. name: notification
  67. platform:
  68. os: linux
  69. arch: amd64
  70. clone:
  71. disable: true
  72. steps:
  73. - name: matrix
  74. image: plugins/matrix
  75. settings:
  76. homeserver:
  77. from_secret: matrix_homeserver
  78. password:
  79. from_secret: matrix_password
  80. roomid:
  81. from_secret: matrix_roomid
  82. template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
  83. username:
  84. from_secret: matrix_username
  85. trigger:
  86. ref:
  87. - refs/heads/master
  88. - refs/tags/**
  89. status:
  90. - success
  91. - failure
  92. depends_on:
  93. - documentation
  94. ---
  95. kind: signature
  96. hmac: df1570927bacd64a72d3b9a78ae1f5088f82b1a4375a766c855a816efc95e2cd
  97. ...