From 8a4a40f7f487cbc08a35f26bc44345155beff4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 20 Jun 2017 17:41:58 +0100 Subject: [PATCH] ci: stop containers before pulling --- scripts/deploy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/deploy b/scripts/deploy index efd9f84b..64036c2f 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -134,6 +134,14 @@ const deploy = async () => { LOG(`${figures.arrowRight} deploy`); + // stop containers + await execa('docker-compose', ['stop'], { + stdio: 'inherit', + env: Object.assign({}, env, { + COMPOSE_PROJECT_NAME + }) + }); + // kill containers await execa('docker-compose', ['kill'], { stdio: 'inherit', @@ -143,7 +151,7 @@ const deploy = async () => { }); // rm containers - await execa('docker-compose', ['rm', '--force'], { + await execa('docker-compose', ['rm', '-f', '-v'], { stdio: 'inherit', env: Object.assign({}, env, { COMPOSE_PROJECT_NAME