@@ -23,9 +23,8 @@ cp.spawnSync('docker-compose', ['run', '--rm', 'api', '/bin/sh', '-c', 'yarn ins
23
23
cp . spawnSync ( 'docker' , [ 'build' , '--no-cache' , '--tag' , pkg . name , '.' ] , { stdio : 'inherit' } ) ;
24
24
const ssh = cp . spawn ( 'ssh' , [ '-C' , host , 'docker' , 'load' ] , { stdio : [ 'pipe' , 'inherit' , 'inherit' ] } ) ;
25
25
const docker = cp . spawn ( 'docker' , [ 'save' , pkg . name ] , { stdio : [ 'inherit' , ssh . stdin , 'inherit' ] } ) ;
26
- docker . on ( 'exit' , ( ) => {
27
- ssh . stdin . end ( ( ) => {
28
- cp . spawnSync ( 'ssh' , [ '-C' , host , 'docker-compose' , '-f' , composeFile , 'up' , '-d' ] , { stdio : 'inherit' } ) ;
29
- cp . spawnSync ( 'ssh' , [ '-C' , host , 'docker' , 'image' , 'prune' , '-a' , '-f' ] , { stdio : 'inherit' } ) ;
30
- } ) ;
26
+ docker . on ( 'exit' , ( ) => { ssh . stdin . end ( ) ; } ) ;
27
+ ssh . on ( 'exit' , ( ) => {
28
+ cp . spawnSync ( 'ssh' , [ '-C' , host , 'docker-compose' , '-f' , composeFile , 'up' , '-d' ] , { stdio : 'inherit' } ) ;
29
+ cp . spawnSync ( 'ssh' , [ '-C' , host , 'docker' , 'image' , 'prune' , '-a' , '-f' ] , { stdio : 'inherit' } ) ;
31
30
} ) ;
0 commit comments