Deploy fixes
This commit is contained in:
parent
166d4ab242
commit
2c9bbcd571
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue