Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-18 12:15:37 +00:00
parent f6850fa35f
commit 6a2de89154

5
Jenkinsfile vendored
View File

@@ -18,10 +18,7 @@ pipeline {
stage('deploy') {
steps {
script {
def dockerCmd = 'docker run -p 3080:3080 -d nanajanashia/demo-app:1.0'
sshagent(['ec2-server-key']) {
sh "ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerCmd}"
}
echo "Deploying the application..."
}
}
}