fix env var setup

This commit is contained in:
Nana Janashia
2020-11-22 13:43:08 +01:00
parent 106a7e447e
commit e14b7b7012
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@@ -38,7 +38,7 @@ pipeline {
steps {
script {
echo 'deploying docker image to EC2...'
def dockerComposeCmd = "docker-compose -f docker-compose.yaml up"
def dockerComposeCmd = "docker-compose -f docker-compose.yaml up --detach"
sshagent(['ec2-server-key']) {
sh "scp docker-compose.yaml ec2-user@35.180.251.121:/home/ec2-user"
sh "ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerComposeCmd}"