Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
 : change prune command
  • Loading branch information
falconlee236 committed Nov 7, 2024
1 parent d048a45 commit 4636152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pipeline {
script {
sshagent(credentials: ['EC2_SSH']) {
sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker run -p 3030:3030 --name $CONTAINER_NAME -d ${DOCKER_IMAGE}"'
sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker image prune --force"'
sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker system prune --force --all --volumes"'
}
}

Expand Down

0 comments on commit 4636152

Please sign in to comment.