File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,14 @@ const appPath = "~/app";
52
52
const sshPrefix =
53
53
"ssh -o StrictHostKeyChecking=no " + ( sshKeyPath ? `-i ${ sshKeyPath } ` : "" ) + sshServer + " " ;
54
54
55
- console . log ( "⚠️ Cleaning up old images ..." ) ;
56
- logs = execSync ( sshPrefix + '"sudo docker image prune --force"' ) ;
57
- console . log ( String ( logs ) ) ;
58
55
console . log ( "⚠️ Cleaning up old containers ..." ) ;
59
56
logs = execSync ( sshPrefix + '"sudo docker container prune --force"' ) ;
60
57
console . log ( String ( logs ) ) ;
61
58
59
+ console . log ( "⚠️ Cleaning up old images ..." ) ;
60
+ logs = execSync ( sshPrefix + '"sudo docker image prune --force"' ) ;
61
+ console . log ( String ( logs ) ) ;
62
+
62
63
console . log ( "⚠️ Deleting old code ..." ) ;
63
64
logs = execSync ( sshPrefix + '"rm -f -r ' + appPath + '"' ) ;
64
65
logs = execSync ( sshPrefix + '"mkdir ' + appPath + '"' ) ;
You can’t perform that action at this time.
0 commit comments