#814 Docker deploy fixes

This commit is contained in:
Juan Ferrer 2019-01-02 00:14:41 +01:00
parent 93b6a72805
commit 4305c35946
1 changed files with 8 additions and 8 deletions

2
Jenkinsfile vendored
View File

@ -31,6 +31,7 @@ node {
} }
} }
stage ('Docker deployment') { stage ('Docker deployment') {
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
environment { environment {
COMPOSE_HTTP_TIMEOUT = 300 COMPOSE_HTTP_TIMEOUT = 300
COMPOSE_PROJECT_NAME = 'salix' COMPOSE_PROJECT_NAME = 'salix'
@ -39,7 +40,6 @@ node {
sh "docker-compose build" sh "docker-compose build"
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376'; env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
sh "docker-compose up -d" sh "docker-compose up -d"
} }