Update '.drone.yml'

pull/146/head
saeid_01 3 years ago
parent e22211e6e8
commit 068e21f8ea

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

Loading…
Cancel
Save