Update Jenkinsfile
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -18,10 +18,7 @@ pipeline {
|
|||||||
stage('deploy') {
|
stage('deploy') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def dockerCmd = 'docker run -p 3080:3080 -d nanajanashia/demo-app:1.0'
|
echo "Deploying the application..."
|
||||||
sshagent(['ec2-server-key']) {
|
|
||||||
sh "ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerCmd}"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user