Deploy fixes
This commit is contained in:
parent
166d4ab242
commit
2c9bbcd571
|
@ -34,14 +34,6 @@ node {
|
||||||
stage ('Generating new dockers') {
|
stage ('Generating new dockers') {
|
||||||
sh "docker build -t vn-loopback:latest ./services/loopback/"
|
sh "docker build -t vn-loopback:latest ./services/loopback/"
|
||||||
sh "docker-compose up -d --build"
|
sh "docker-compose up -d --build"
|
||||||
/*
|
sh "docker image prune --all"
|
||||||
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'
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
container_name: "${BRANCH_NAME}-nginx"
|
container_name: "${BRANCH_NAME}-nginx"
|
||||||
image: "nginx:${TAG}"
|
image: "nginx:${BUILD_NUMBER}"
|
||||||
privileged: true
|
privileged: true
|
||||||
build:
|
build:
|
||||||
context: ./services/nginx
|
context: ./services/nginx
|
||||||
|
|
Loading…
Reference in New Issue