mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 06:45:05 +00:00
ssh_creds
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user