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.

51 lines
1010 B

  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. to: 1234973386524610
  32. when:
  33. event: [ push, pull_request ]
  34. status: [ success, failure ]
  35. services:
  36. elasticsearch:
  37. image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
  38. redis:
  39. image: redis:latest
  40. postgres:
  41. image: postgres:9.5.5
  42. environment:
  43. - POSTGRES_DB=homestead
  44. - POSTGRES_USER=homestead
  45. - POSTGRES_PASSWORD=secret