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.

105 lines
1.8 KiB

  1. ---
  2. kind: pipeline
  3. name: linting
  4. platform:
  5. os: linux
  6. arch: amd64
  7. steps:
  8. - name: ansible-later
  9. image: thegeeklab/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: thegeeklab/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. trigger:
  48. ref:
  49. - refs/heads/master
  50. - refs/tags/**
  51. - refs/pull/**
  52. depends_on:
  53. - linting
  54. ---
  55. kind: pipeline
  56. name: notification
  57. platform:
  58. os: linux
  59. arch: amd64
  60. clone:
  61. disable: true
  62. steps:
  63. - name: matrix
  64. image: plugins/matrix
  65. settings:
  66. homeserver:
  67. from_secret: matrix_homeserver
  68. password:
  69. from_secret: matrix_password
  70. roomid:
  71. from_secret: matrix_roomid
  72. template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
  73. username:
  74. from_secret: matrix_username
  75. trigger:
  76. ref:
  77. - refs/heads/master
  78. - refs/tags/**
  79. status:
  80. - success
  81. - failure
  82. depends_on:
  83. - documentation
  84. ---
  85. kind: signature
  86. hmac: d000a461c06afd061badf5cf90dd6c817bda94b9924684621f5c5ce865d703b8
  87. ...