Something something like soundcloud but not like soundcloud.
Log in, upload records, done.
Simple, easy, KISS.
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 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. ---
  2. kind: pipeline
  3. name: default
  4. platform:
  5. os: linux
  6. arch: amd64
  7. clone:
  8. depth: 50
  9. steps:
  10. - name: restore-cache
  11. pull: default
  12. image: drillster/drone-volume-cache
  13. settings:
  14. mount:
  15. - .cache
  16. restore: true
  17. volumes:
  18. - name: 2f746d702f6361636865
  19. path: /cache
  20. - name: build
  21. pull: default
  22. image: python:3-alpine
  23. commands:
  24. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev
  25. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  26. - pip install --upgrade --cache-dir=.cache/pip pip setuptools
  27. - pip install --cache-dir=.cache/pip flake8
  28. - pip install --cache-dir=.cache/pip black
  29. - pip install --cache-dir=.cache/pip -r requirements.txt
  30. - python setup.py install
  31. - ./tests/install_audiowaveform.sh
  32. - black --check .
  33. - flake8 . --count --show-source --statistics
  34. - cp tests/config_test.py config.py
  35. - python setup.py test
  36. - name: migrations
  37. pull: default
  38. image: python:3-alpine
  39. commands:
  40. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev postgresql-client
  41. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  42. - pip install --upgrade --cache-dir=.cache/pip pip setuptools
  43. - pip install --cache-dir=.cache/pip flake8
  44. - pip install --cache-dir=.cache/pip black
  45. - pip install --cache-dir=.cache/pip -r requirements.txt
  46. - python setup.py install
  47. - "psql -U postgres -h database -w -c 'CREATE DATABASE reel2bits'"
  48. - "psql -U postgres -h database -w -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";' reel2bits"
  49. - cp config.py.sample config.py
  50. - flask db upgrade
  51. - name: rebuild-cache
  52. pull: default
  53. image: drillster/drone-volume-cache
  54. settings:
  55. mount:
  56. - .cache
  57. rebuild: true
  58. volumes:
  59. - name: 2f746d702f6361636865
  60. path: /cache
  61. - name: publish-web
  62. pull: default
  63. image: plugins/docker
  64. settings:
  65. dockerfile: Dockerfile-web
  66. repo: dashie/reel2bits-web
  67. tags:
  68. - latest
  69. environment:
  70. DOCKER_PASSWORD:
  71. from_secret: DOCKER_PASSWORD
  72. DOCKER_USERNAME:
  73. from_secret: DOCKER_USERNAME
  74. when:
  75. branch:
  76. - master
  77. event:
  78. - push
  79. - tag
  80. - name: publish-worker
  81. pull: default
  82. image: plugins/docker
  83. settings:
  84. dockerfile: Dockerfile-worker
  85. repo: dashie/reel2bits-worker
  86. tags:
  87. - latest
  88. environment:
  89. DOCKER_PASSWORD:
  90. from_secret: DOCKER_PASSWORD
  91. DOCKER_USERNAME:
  92. from_secret: DOCKER_USERNAME
  93. when:
  94. branch:
  95. - master
  96. event:
  97. - push
  98. - tag
  99. - name: notify
  100. pull: default
  101. image: plugins/slack
  102. settings:
  103. channel: gitea
  104. environment:
  105. SLACK_WEBHOOK:
  106. from_secret: SLACK_WEBHOOK
  107. when:
  108. event:
  109. - push
  110. - tag
  111. - pull_request
  112. status:
  113. - changed
  114. - failure
  115. - success
  116. services:
  117. - name: database
  118. pull: default
  119. image: postgres
  120. environment:
  121. POSTGRES_DB: reel2bits_test
  122. POSTGRES_USER: postgres
  123. - name: redis
  124. pull: default
  125. image: redis
  126. volumes:
  127. - name: 2f746d702f6361636865
  128. host:
  129. path: /tmp/cache