Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: leavylip/gitlab-ci-laravel-php7:latest
- services:
- - mysql:latest
- variables:
- MYSQL_ROOT_PASSWORD: secret
- MYSQL_DATABASE: laggygamerz_web
- MYSQL_USER: laggygamerz_web
- MYSQL_PASSWORD: secret
- before_script:
- - curl -sL https://deb.nodesource.com/setup_6.x | bash -
- - apt-get install nodejs -y
- - npm install -g bower
- - cp .env.testing .env
- stages:
- - build
- - deploy
- cache:
- paths:
- - vendor/
- - node_modules/
- - resources/assets/bower/
- build:
- stage: build
- script: sh .gitlab-ci.build.sh
- deploy to production:
- stage: deploy
- script: sh .gitlab-ci.production.sh
- environment:
- name: production
- url: https://laggygamerz.com
- when: manual
- only:
- - master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement