This commit is contained in:
Gregory Hendrickson
2023-06-09 12:51:15 -07:00
parent 12e0cf669f
commit ce71fa1d15

2
Jenkinsfile vendored
View File

@@ -33,7 +33,7 @@ pipeline{
steps { steps {
// Deploy to remote Docker host // Deploy to remote Docker host
sshagent(['ssh_creds']) { sshagent(['ssh_creds']) {
sh "ssh -o StrictHostKeyChecking=no administrator@172.16.11.90 'docker stop --name docker-test-image && docker pull aisthanestha/docker-test-image:latest && docker run -d -p 8082:80 --name docker-test-image:latest'" sh "ssh-copy-id -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa.pub administrator@172.16.11.90 && ssh -o StrictHostKeyChecking=no administrator@172.16.11.90 'docker stop --name docker-test-image && docker pull aisthanestha/docker-test-image:latest && docker run -d -p 8082:80 --name docker-test-image:latest'"
} }
} }
} }