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.

143 lines
2.4KB

  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:latest
  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: deployment
  20. platform:
  21. os: linux
  22. arch: amd64
  23. concurrency:
  24. limit: 1
  25. workspace:
  26. base: /drone/src
  27. path: xoxys.nginx
  28. steps:
  29. - name: ansible-molecule
  30. image: xoxys/molecule:latest
  31. commands:
  32. - molecule test -s default
  33. environment:
  34. DO_API_KEY:
  35. from_secret: do_api_key
  36. MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
  37. MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
  38. USER: root
  39. trigger:
  40. ref:
  41. - refs/heads/master
  42. - refs/tags/**
  43. depends_on:
  44. - linting
  45. ---
  46. kind: pipeline
  47. name: documentation
  48. platform:
  49. os: linux
  50. arch: amd64
  51. steps:
  52. - name: ansible-doctor
  53. image: xoxys/ansible-doctor:latest
  54. environment:
  55. ANSIBLE_DOCTOR_CUSTOM_HEADER: HEADER.md
  56. ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
  57. ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
  58. ANSIBLE_DOCTOR_LOG_LEVEL: INFO
  59. - name: push-to-repo
  60. image: plugins/git-action:latest
  61. settings:
  62. actions:
  63. - commit
  64. - push
  65. author_email: shipper@rknet.org
  66. author_name: DroneShipper
  67. branch: master
  68. message: "[SKIP CI] update readme"
  69. netrc_machine: gitea.rknet.org
  70. netrc_password:
  71. from_secret: gitea_token
  72. netrc_username:
  73. from_secret: gitea_username
  74. remote: https://gitea.rknet.org/ansible/xoxys.nginx
  75. when:
  76. ref:
  77. - refs/heads/master
  78. trigger:
  79. ref:
  80. - refs/heads/master
  81. - refs/tags/**
  82. - refs/pull/**
  83. depends_on:
  84. - deployment
  85. ---
  86. kind: pipeline
  87. name: notification
  88. platform:
  89. os: linux
  90. arch: amd64
  91. clone:
  92. disable: true
  93. steps:
  94. - name: matrix
  95. image: plugins/matrix
  96. settings:
  97. homeserver:
  98. from_secret: matrix_homeserver
  99. password:
  100. from_secret: matrix_password
  101. roomid:
  102. from_secret: matrix_roomid
  103. template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
  104. username:
  105. from_secret: matrix_username
  106. trigger:
  107. ref:
  108. - refs/heads/master
  109. - refs/tags/**
  110. status:
  111. - success
  112. - failure
  113. depends_on:
  114. - documentation
  115. ---
  116. kind: signature
  117. hmac: 909e8cb6a29e1cfc4a6c0c850997a23a5b08662a71cc980d82bcb252d314bef6
  118. ...