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.
25 lines
686 B
25 lines
686 B
3 years ago
|
kind: pipeline
|
||
|
type: exec
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
commands:
|
||
|
- docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}:latest --build-arg ssh_prv_key="$(cat /home/administrator/.ssh/id_rsa)"
|
||
|
- cd /home/administrator/apps/${IMAGE_NAME}/;sudo ./BuildDocker
|
||
|
|
||
|
- name: deploy
|
||
|
commands:
|
||
|
- cd /home/administrator/apps/${IMAGE_NAME}/ ; docker-compose up -d
|
||
|
- docker exec willaengine bash -c "COMPOSER=composer-prod.json composer update"
|
||
|
- docker exec willaengine service cron start
|
||
|
- docker exec willaengine php artisan config:cache
|
||
|
- docker exec willaengine php artisan route:cache
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- master
|
||
|
|
||
|
environment:
|
||
|
- IMAGE_NAME=willaengine
|