ssh_creds

This commit is contained in:
Gregory Hendrickson
2023-06-09 12:53:07 -07:00
parent 649dfe31c4
commit 5c7e2300b1

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-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'" 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'"
} }
} }
} }