Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

68 рядки
1.4 KiB

  1. # Laravel + Drone
  2. [Drone](https://github.com/drone/drone) is a Continuous Delivery system built on container technology. Drone uses a simple yaml configuration file, a superset of docker-compose, to define and execute Pipelines inside Docker containers.
  3. ## Screenshots
  4. ```yml
  5. clone:
  6. git:
  7. image: plugins/git
  8. depth: 50
  9. tags: true
  10. pipeline:
  11. frontend:
  12. image: node:8.1.2
  13. group: laravel
  14. commands:
  15. - node -v
  16. - npm -v
  17. - yarn --version
  18. - yarn config set cache-folder .yarn-cache
  19. - yarn install
  20. - yarn run production
  21. backend:
  22. image: laradock/workspace:1.8-71
  23. group: laravel
  24. commands:
  25. - php -v
  26. - composer -V
  27. - cp .env.example .env
  28. - composer install --prefer-dist
  29. - php artisan key:generate
  30. - php artisan migrate
  31. - ./vendor/bin/phpunit
  32. fb:
  33. image: appleboy/drone-facebook
  34. pull: true
  35. secrets: [ fb_page_token, fb_verify_token ]
  36. to: 1234973386524610
  37. when:
  38. event: [ push, pull_request ]
  39. status: [ success, failure ]
  40. services:
  41. elasticsearch:
  42. image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
  43. redis:
  44. image: redis:latest
  45. postgres:
  46. image: postgres:9.5.5
  47. environment:
  48. - POSTGRES_DB=homestead
  49. - POSTGRES_USER=homestead
  50. - POSTGRES_PASSWORD=secret
  51. ```
  52. ## Testing your Drone config
  53. Please try the following command to test drone config in local machine.
  54. ```sh
  55. $ drone exec
  56. ```