mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
chore: attach stdio to all deploy cmds
This commit is contained in:
parent
31d34c412b
commit
9081d50a0e
@ -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
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user