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.
 
 
 
 
 
 

117 lines
1.8 KiB

  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: default
  5. platform:
  6. os: linux
  7. arch: amd64
  8. workspace:
  9. base: /src
  10. steps:
  11. - name: build
  12. pull: if-not-exists
  13. image: leophys/fenix-builder:0.5
  14. commands:
  15. - /src/gradlew --stacktrace app:assemble
  16. - /src/sign.sh
  17. environment:
  18. KEY_PASSWORD:
  19. from_secret: key_password
  20. KEY_PATH: /secrets/key.jks
  21. ANDROID_SDK_ROOT: /usr/local/android-sdk-linux
  22. volumes:
  23. - name: builds_output
  24. path: /builds/
  25. - name: secrets
  26. path: /secrets
  27. volumes:
  28. - name: builds_output
  29. host:
  30. path: /var/builds/fenix
  31. - name: secrets
  32. host:
  33. path: /var/drone/secrets
  34. trigger:
  35. branch:
  36. - master
  37. event:
  38. - push
  39. - cron
  40. ---
  41. kind: pipeline
  42. type: docker
  43. name: notify_success
  44. clone:
  45. disable: true
  46. steps:
  47. - name: notify_success
  48. pull: if-not-exists
  49. image: leophys/mailer:0.5
  50. environment:
  51. M_SERVER_ADDRESS:
  52. from_secret: m_server_address
  53. M_USER:
  54. from_secret: m_user
  55. M_PASSWORD:
  56. from_secret: m_password
  57. M_FROM:
  58. from_secret: m_from
  59. M_TO:
  60. from_secret: m_to
  61. M_SUB: "[fenix] SUCCESS"
  62. M_TEXT: "Success building fenix"
  63. trigger:
  64. status:
  65. - success
  66. depends_on:
  67. - default
  68. ---
  69. kind: pipeline
  70. type: docker
  71. name: notify_failure
  72. clone:
  73. disable: true
  74. steps:
  75. - name: notify_failure
  76. pull: if-not-exists
  77. image: leophys/mailer:0.5
  78. environment:
  79. M_SERVER_ADDRESS:
  80. from_secret: m_server_address
  81. M_USER:
  82. from_secret: m_user
  83. M_PASSWORD:
  84. from_secret: m_password
  85. M_FROM:
  86. from_secret: m_from
  87. M_TO:
  88. from_secret: m_to
  89. M_SUB: "[fenix] FAILURE"
  90. M_TEXT: "Failed building fenix"
  91. trigger:
  92. status:
  93. - failure
  94. depends_on:
  95. - default
  96. ---
  97. kind: signature
  98. hmac: 75d28c4234d1faa970a1fa4c54917bad4ba57122389cad5ae8f3b3a600d16aef
  99. ...