#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

16
Jenkinsfile vendored
View File

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