#814 Docker deploy fixes

This commit is contained in:
Juan Ferrer 2019-01-02 00:52:15 +01:00
parent b2c510fcd9
commit a5897c7808
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -29,12 +29,12 @@ node {
} }
} }
stage ('Docker deployment') { stage ('Docker deployment') {
env.COMPOSE_HTTP_TIMEOUT = 300 sh "docker-compose build"
env.COMPOSE_PROJECT_NAME = 'salix'
env.DOCKER_TLS_VERIFY = 1
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) { withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh "docker-compose build" env.COMPOSE_HTTP_TIMEOUT = 300
env.COMPOSE_PROJECT_NAME = 'salix'
env.DOCKER_TLS_VERIFY = 1
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"