Deploy fixes

This commit is contained in:
Juan 2018-06-11 21:01:55 +02:00
parent 166d4ab242
commit 2c9bbcd571
2 changed files with 2 additions and 10 deletions

10
Jenkinsfile vendored
View File

@ -34,14 +34,6 @@ node {
stage ('Generating new dockers') {
sh "docker build -t vn-loopback:latest ./services/loopback/"
sh "docker-compose up -d --build"
/*
def curCompose = new File('docker-compose.current.yml')
if (curCompose.exists()) {
sh "docker-compose --file docker-compose.current.yml down --rmi all"
}
def compose = new File('docker-compose.yml')
compose.renameTo 'docker-compose.current.new.yml'
*/
sh "docker image prune --all"
}
}

View File

@ -2,7 +2,7 @@ version: '2'
services:
nginx:
container_name: "${BRANCH_NAME}-nginx"
image: "nginx:${TAG}"
image: "nginx:${BUILD_NUMBER}"
privileged: true
build:
context: ./services/nginx