Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-18 11:59:09 +00:00
parent 8afb0e62a3
commit a5ed743178

5
Jenkinsfile vendored
View File

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