adjustments

This commit is contained in:
Nana Janashia
2020-11-22 09:25:55 +01:00
parent 7002a942d3
commit b39bdc130f

5
Jenkinsfile vendored
View File

@@ -20,10 +20,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..."
}
}
}