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.

52 lines
1.0 KiB

  1. clone:
  2. git:
  3. image: plugins/git
  4. depth: 50
  5. tags: true
  6. pipeline:
  7. frontend:
  8. image: node:8.1.2
  9. group: laravel
  10. commands:
  11. - node -v
  12. - npm -v
  13. - yarn --version
  14. - yarn config set cache-folder .yarn-cache
  15. - yarn install
  16. - yarn run production
  17. backend:
  18. image: laradock/workspace:1.8-71
  19. group: laravel
  20. commands:
  21. - php -v
  22. - composer -V
  23. - cp .env.example .env
  24. - composer install --prefer-dist
  25. - php artisan key:generate
  26. - php artisan migrate
  27. - ./vendor/bin/phpunit
  28. fb:
  29. image: appleboy/drone-facebook
  30. pull: true
  31. secrets: [ fb_page_token, fb_verify_token ]
  32. to: 1234973386524610
  33. when:
  34. event: [ push, pull_request ]
  35. status: [ success, failure ]
  36. services:
  37. elasticsearch:
  38. image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
  39. redis:
  40. image: redis:latest
  41. postgres:
  42. image: postgres:9.5.5
  43. environment:
  44. - POSTGRES_DB=homestead
  45. - POSTGRES_USER=homestead
  46. - POSTGRES_PASSWORD=secret