Fixes for docker deploy with private registry

This commit is contained in:
Juan Ferrer 2019-01-11 08:56:31 +01:00
parent 5334a13e66
commit eb0c497d05
1 changed files with 12 additions and 12 deletions

24
Jenkinsfile vendored
View File

@ -54,21 +54,21 @@ try {
sh "docker-compose build --parallel"
sh "docker-compose push"
sh "docker logout ${env.REGISTRY}"
}
withCredentials([dockerCert(
credentialsId: 'docker',
variable: 'DOCKER_CERT_PATH')
]) {
env.DOCKER_TLS_VERIFY = 1
withCredentials([dockerCert(
credentialsId: 'docker',
variable: 'DOCKER_CERT_PATH')
]) {
env.DOCKER_TLS_VERIFY = 1
env.DOCKER_HOST = 'tcp://vch1.verdnatura.es:2376';
sh "docker-compose pull"
sh "docker-compose up -d"
env.DOCKER_HOST = 'tcp://vch1.verdnatura.es:2376';
sh "docker-compose pull"
sh "docker-compose up -d"
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
sh "docker-compose pull"
sh "docker-compose up -d"
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
sh "docker-compose pull"
sh "docker-compose up -d"
}
}
}
}