https://github.com/go-training/drone-laravel-example
Drone CI/CD with Laravel Framework
https://github.com/go-training/drone-laravel-example
drone drone-ci laravel
Last synced: 6 months ago
JSON representation
Drone CI/CD with Laravel Framework
- Host: GitHub
- URL: https://github.com/go-training/drone-laravel-example
- Owner: go-training
- License: mit
- Created: 2017-06-27T14:08:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T12:41:31.000Z (over 2 years ago)
- Last Synced: 2024-04-14T08:33:26.685Z (over 1 year ago)
- Topics: drone, drone-ci, laravel
- Language: PHP
- Size: 2.92 MB
- Stars: 33
- Watchers: 3
- Forks: 26
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel + Drone
[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.
[](https://cloud.drone.io/go-training/drone-laravel-example)
## Screenshots

```yml
---
kind: pipeline
name: defaultplatform:
os: linux
arch: amd64steps:
- name: frontend
pull: if-not-exists
image: node:8.1.2
commands:
- node -v
- npm -v
- yarn --version
- yarn config set cache-folder .yarn-cache
- yarn install
- yarn run production- name: backend
pull: if-not-exists
image: laradock/workspace:1.8-71
commands:
- php -v
- composer -V
- cp .env.example .env
- composer install --prefer-dist
- php artisan key:generate
- php artisan migrate
- ./vendor/bin/phpunitservices:
- name: elasticsearch
pull: if-not-exists
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0- name: redis
pull: if-not-exists
image: redis:latest- name: postgres
pull: if-not-exists
image: postgres:9.5.5
environment:
POSTGRES_DB: homestead
POSTGRES_PASSWORD: secret
POSTGRES_USER: homestead...
```
## Testing your Drone config
Please try the following command to test drone config in local machine.
```sh
drone exec
```