|
|
@ -1,16 +1,16 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
type: exec
|
|
|
|
name: willaengine
|
|
|
|
name: default
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: build_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/${IMAGE_NAME}:latest --build-arg ssh_prv_key="$(cat /home/administrator/.ssh/id_rsa)" .
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy_production
|
|
|
|
- name: deploy to production
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd /home/administrator/apps/${IMAGE_NAME}/ ; docker-compose up -d
|
|
|
|
- cd /home/administrator/apps/${IMAGE_NAME}/ ; 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"
|
|
|
@ -21,7 +21,7 @@ steps:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
- name: build_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/${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/${IMAGE_NAME}-staging-nginx:latest -f Dockerfile.nginx .
|
|
|
|
- docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}-staging-nginx:latest -f Dockerfile.nginx .
|
|
|
@ -29,7 +29,7 @@ steps:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
- dev
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy_staging
|
|
|
|
- name: deploy to staging
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd /apps/${IMAGE_NAME}-staging/ ; docker-compose up -d
|
|
|
|
- cd /apps/${IMAGE_NAME}-staging/ ; docker-compose up -d
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|