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.

70 lines
1.5 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. <img src="resources/assets/images/screen.png" />
  5. ```yml
  6. clone:
  7. git:
  8. image: plugins/git
  9. depth: 50
  10. tags: true
  11. pipeline:
  12. frontend:
  13. image: node:8.1.2
  14. group: laravel
  15. commands:
  16. - node -v
  17. - npm -v
  18. - yarn --version
  19. - yarn config set cache-folder .yarn-cache
  20. - yarn install
  21. - yarn run production
  22. backend:
  23. image: laradock/workspace:1.8-71
  24. group: laravel
  25. commands:
  26. - php -v
  27. - composer -V
  28. - cp .env.example .env
  29. - composer install --prefer-dist
  30. - php artisan key:generate
  31. - php artisan migrate
  32. - ./vendor/bin/phpunit
  33. fb:
  34. image: appleboy/drone-facebook
  35. pull: true
  36. secrets: [ fb_page_token, fb_verify_token ]
  37. to: 1234973386524610
  38. when:
  39. event: [ push, pull_request ]
  40. status: [ success, failure ]
  41. services:
  42. elasticsearch:
  43. image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
  44. redis:
  45. image: redis:latest
  46. postgres:
  47. image: postgres:9.5.5
  48. environment:
  49. - POSTGRES_DB=homestead
  50. - POSTGRES_USER=homestead
  51. - POSTGRES_PASSWORD=secret
  52. ```
  53. ## Testing your Drone config
  54. Please try the following command to test drone config in local machine.
  55. ```sh
  56. $ drone exec
  57. ```