From 9081d50a0e7951057a9a399a545a64763a8086da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 31 May 2017 10:38:19 +0100 Subject: [PATCH] chore: attach stdio to all deploy cmds --- scripts/deploy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/deploy b/scripts/deploy index 414af2c4..b90dd5fe 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -32,7 +32,9 @@ const login = ({ `--username="${_DOCKER_LOGIN_USERNAME}"`, `--password="${_DOCKER_LOGIN_PASSWORD}"`, _DOCKER_REGISTRY - ]); + ], { + stdio: 'inherit' + }); }; const build = ({ CIRCLE_BRANCH }) => async () => { @@ -76,12 +78,15 @@ const build = ({ CIRCLE_BRANCH }) => async () => { const logout = env => () => { LOG(`${figures.arrowRight} logout`); - return execa('docker', ['logout']); + return execa('docker', ['logout'], { + stdio: 'inherit' + }); }; const deploy = env => () => { LOG(`${figures.arrowRight} deploy`); return execa('docker-compose', ['up', '-d', '--build'], { + stdio: 'inherit', env }); };