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 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ---
  2. kind: pipeline
  3. name: linting
  4. platform:
  5. os: linux
  6. arch: amd64
  7. steps:
  8. - name: ansible-latest
  9. pull: always
  10. image: python:3.7
  11. commands:
  12. - pip install ansible ansible-later~=0.2.0 -qq
  13. - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
  14. - ansible-later -c ~/policy/config.yml
  15. environment:
  16. PY_COLORS: 1
  17. depends_on:
  18. - clone
  19. - name: ansible-master
  20. pull: always
  21. image: python:3.7
  22. commands:
  23. - "pip install git+https://github.com/ansible/ansible.git@devel ansible-later~=0.2.0 -qq"
  24. - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
  25. - ansible-later -c ~/policy/config.yml
  26. environment:
  27. PY_COLORS: 1
  28. depends_on:
  29. - clone
  30. trigger:
  31. ref:
  32. - refs/heads/master
  33. - "refs/tags/**"
  34. - "refs/pull/**"
  35. ---
  36. kind: pipeline
  37. name: deployment
  38. platform:
  39. os: linux
  40. arch: amd64
  41. workspace:
  42. base: /drone/src
  43. path: xoxys.nginx
  44. steps:
  45. - name: molecule
  46. pull: always
  47. image: xoxys/molecule:ec2-linux-amd64
  48. commands:
  49. - /bin/bash /docker-entrypoint.sh
  50. - molecule test --scenario-name ec2-centos-7
  51. environment:
  52. ANSIBLE_ROLES_PATH: /drone/src
  53. AWS_ACCESS_KEY_ID:
  54. from_secret: aws_access_key_id
  55. AWS_REGION: eu-central-1
  56. AWS_SECRET_ACCESS_KEY:
  57. from_secret: aws_secret_access_key
  58. MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
  59. MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
  60. PY_COLORS: 1
  61. trigger:
  62. ref:
  63. - refs/heads/master
  64. - "refs/tags/**"
  65. depends_on:
  66. - linting
  67. ---
  68. kind: pipeline
  69. name: notifications
  70. platform:
  71. os: linux
  72. arch: amd64
  73. clone:
  74. disable: true
  75. steps:
  76. - name: matrix
  77. image: plugins/matrix
  78. settings:
  79. homeserver: https://matrix.rknet.org
  80. password:
  81. from_secret: matrix_password
  82. roomid: MtidqQXWWAtQcByBhH:rknet.org
  83. template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
  84. username:
  85. from_secret: matrix_username
  86. trigger:
  87. ref:
  88. - refs/heads/master
  89. - "refs/tags/**"
  90. status:
  91. - success
  92. - failure
  93. depends_on:
  94. - deployment
  95. ---
  96. kind: signature
  97. hmac: 226bf0743c15c37dab2a6f13989960e0106d8598fce5b9c256010c132bd13b7c
  98. ...