mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 14:55:14 +00:00
add ssh
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -29,6 +29,14 @@ pipeline{
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
// Deploy to remote Docker host
|
||||
sshagent(['ssh_credentials']) {
|
||||
sh "ssh 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'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
@@ -36,4 +44,5 @@ pipeline{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user