1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fujianxinxi-laravue

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.gitlab-ci.yml 880
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Tuan Duong Отправлено 06.02.2019 07:11 dd82396
image: registry.gitlab.com/bacduong/laravue:latest
services:
- mysql:5.7
variables:
MYSQL_DATABASE: homestead
MYSQL_ROOT_PASSWORD: secret
DB_HOST: mysql
DB_USERNAME: root
stages:
- test
- deploy
unit_test:
stage: test
script:
- cp .env.example .env
- composer install
- php artisan key:generate
- php artisan migrate
- vendor/bin/phpunit
deploy_staging:
stage: deploy
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ~/.composer/vendor/bin/envoy run deploy --commit="$CI_COMMIT_SHA"
environment:
name: staging
url: http://laravue.cipherpols.com
when: on_success
only:
- master

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/fujianxinxi-laravue.git
git@api.gitlife.ru:oschina-mirror/fujianxinxi-laravue.git
oschina-mirror
fujianxinxi-laravue
fujianxinxi-laravue
master