Fixes for docker deploy with private registry
This commit is contained in:
parent
5334a13e66
commit
eb0c497d05
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue