mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
ci: stop containers before pulling
This commit is contained in:
parent
30d369f194
commit
8a4a40f7f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user