|
|
@ -5,14 +5,14 @@ name: default
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: build to production
|
|
|
|
- name: build to production
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}:latest --build-arg ssh_prv_key="$(cat /home/administrator/.ssh/id_rsa)" .
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine:latest .
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy to production
|
|
|
|
- name: deploy to production
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd /home/administrator/apps/${IMAGE_NAME}/ ; docker-compose up -d
|
|
|
|
- cd /home/administrator/apps/willaengine/ ; docker-compose up -d
|
|
|
|
- docker exec willaengine bash -c "COMPOSER=composer-prod.json composer update"
|
|
|
|
- docker exec willaengine bash -c "COMPOSER=composer-prod.json composer update"
|
|
|
|
- docker exec willaengine service cron start
|
|
|
|
- docker exec willaengine service cron start
|
|
|
|
- docker exec willaengine php artisan config:cache
|
|
|
|
- docker exec willaengine php artisan config:cache
|
|
|
@ -23,15 +23,15 @@ steps:
|
|
|
|
|
|
|
|
|
|
|
|
- name: build to staging
|
|
|
|
- name: build to staging
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}-staging:latest -f Dockerfile.staging --build-arg ssh_prv_key="$(cat /home/administrator/.ssh/id_rsa)" .
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine-staging:latest -f Dockerfile.staging .
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}-staging-nginx:latest -f Dockerfile.nginx .
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine-staging-nginx:latest -f Dockerfile.nginx .
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
- dev
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy to staging
|
|
|
|
- name: deploy to staging
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd /apps/${IMAGE_NAME}-staging/ ; docker-compose up -d
|
|
|
|
- cd /apps/willaengine-staging/ ; docker-compose up -d
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
- dev
|
|
|
@ -40,6 +40,3 @@ trigger:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
- dev
|
|
|
|
- dev
|
|
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
- IMAGE_NAME=willaengine
|
|
|
|
|
|
|
|