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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. clone:
  2. git:
  3. image: plugins/git:1
  4. depth: 50
  5. tags: true
  6. pipeline:
  7. restore-cache:
  8. image: drillster/drone-volume-cache
  9. restore: true
  10. mount:
  11. - .cache
  12. volumes:
  13. - /tmp/cache:/cache
  14. build:
  15. image: python:3-alpine
  16. commands:
  17. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev
  18. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  19. - pip install --upgrade pip setuptools
  20. - pip install --cache-dir=/cache flake8
  21. - pip install --cache-dir=/cache black
  22. - pip install --cache-dir=/cache -r requirements.txt
  23. - python setup.py install
  24. - ./tests/install_audiowaveform.sh
  25. - black --check .
  26. - flake8 .
  27. - cp tests/config_test.py config.py
  28. - python setup.py test
  29. migrations:
  30. image: python:3-alpine
  31. commands:
  32. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev postgresql-client
  33. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  34. - pip install --upgrade pip setuptools
  35. - pip install --cache-dir=/cache flake8
  36. - pip install --cache-dir=/cache black
  37. - pip install --cache-dir=/cache -r requirements.txt
  38. - python setup.py install
  39. - psql -U postgres -h database -w -c 'CREATE DATABASE reel2bits'
  40. - psql -U postgres -h database -w -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' reel2bits
  41. - cp config.py.sample config.py
  42. - flask db upgrade
  43. rebuild-cache:
  44. image: drillster/drone-volume-cache
  45. rebuild: true
  46. mount:
  47. - .cache
  48. volumes:
  49. - /tmp/cache:/cache
  50. publish-web:
  51. image: plugins/docker
  52. repo: dashie/reel2bits-web
  53. dockerfile: Dockerfile-web
  54. tags: [ latest ]
  55. secrets:
  56. - DOCKER_USERNAME
  57. - DOCKER_PASSWORD
  58. when:
  59. branch: master
  60. publish-worker:
  61. image: plugins/docker
  62. repo: dashie/reel2bits-worker
  63. dockerfile: Dockerfile-worker
  64. tags: [ latest ]
  65. secrets:
  66. - DOCKER_USERNAME
  67. - DOCKER_PASSWORD
  68. when:
  69. branch: master
  70. notify:
  71. image: plugins/slack
  72. channel: gitea
  73. secrets:
  74. - SLACK_WEBHOOK
  75. when:
  76. event: [ push, tag, pull_request ]
  77. status: [ changed, failure, success ]
  78. services:
  79. database:
  80. image: postgres
  81. environment:
  82. - POSTGRES_USER=postgres
  83. - POSTGRES_DB=reel2bits_test
  84. redis:
  85. image: redis