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.
48 lines
1.6 KiB
48 lines
1.6 KiB
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
steps:
|
|
- name: build to production
|
|
commands:
|
|
- sudo cp /home/administrator/apps/willaengine/composer-prod.json .
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine:latest --build-arg COMPOSER_FILE_NAME=composer-prod .
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: deploy to production
|
|
commands:
|
|
- cd /home/administrator/apps/willaengine/ ; 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
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: build to staging
|
|
commands:
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine-staging:latest --build-arg COMPOSER_FILE_NAME=composer-staging -f Dockerfile.staging .
|
|
- docker build -t registry.willaspace.com/willaspace/willaengine-staging-nginx:latest -f Dockerfile.nginx .
|
|
when:
|
|
branch:
|
|
- dev
|
|
|
|
- name: deploy to staging
|
|
commands:
|
|
- cd /apps/willaengine-staging/ ; docker-compose up -d
|
|
- docker exec willaengine-staging_php bash -c "COMPOSER=composer-staging.json composer update"
|
|
# - docker exec willaengine-staging_php service supervisor start
|
|
- docker exec willaengine-staging_php bash -c "php artisan db:seed --class=CalculationMethodSeeder"
|
|
# - docker exec willaengine-staging_php php artisan migrate --path=vendor/wm/finance/database/migrations
|
|
when:
|
|
branch:
|
|
- dev
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
- dev
|