1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

chore: attach stdio to all deploy cmds

This commit is contained in:
Sérgio Ramos 2017-05-31 10:38:19 +01:00
parent 31d34c412b
commit 9081d50a0e

View File

@ -32,7 +32,9 @@ const login = ({
`--username="${_DOCKER_LOGIN_USERNAME}"`, `--username="${_DOCKER_LOGIN_USERNAME}"`,
`--password="${_DOCKER_LOGIN_PASSWORD}"`, `--password="${_DOCKER_LOGIN_PASSWORD}"`,
_DOCKER_REGISTRY _DOCKER_REGISTRY
]); ], {
stdio: 'inherit'
});
}; };
const build = ({ CIRCLE_BRANCH }) => async () => { const build = ({ CIRCLE_BRANCH }) => async () => {
@ -76,12 +78,15 @@ const build = ({ CIRCLE_BRANCH }) => async () => {
const logout = env => () => { const logout = env => () => {
LOG(`${figures.arrowRight} logout`); LOG(`${figures.arrowRight} logout`);
return execa('docker', ['logout']); return execa('docker', ['logout'], {
stdio: 'inherit'
});
}; };
const deploy = env => () => { const deploy = env => () => {
LOG(`${figures.arrowRight} deploy`); LOG(`${figures.arrowRight} deploy`);
return execa('docker-compose', ['up', '-d', '--build'], { return execa('docker-compose', ['up', '-d', '--build'], {
stdio: 'inherit',
env env
}); });
}; };