[26.06.20] Docker stuff

This commit is contained in:
andyjk15 2020-06-26 00:25:01 +01:00
parent d8516c358e
commit b017d4dace

View File

@ -78,8 +78,11 @@ try {
def image = docker.build("db-gateway:${env.APPLICATION_VERSION}")
def latest = docker.build("db-gateway:latest")
sh "docker tag ${image} ${env.DOCKER_REPOSITORY}/${image}"
sh "docker tag ${latest} ${env.DOCKER_REPOSITORY}/${latest}"
sh "docker build db-gateway:${env.APPLICATION_VERSION}"
sh "docker build db-gateway:latest"
sh "docker tag db-gateway:${env.APPLICATION_VERSION} ${env.DOCKER_REPOSITORY}/db-gateway:${env.APPLICATION_VERSION}"
sh "docker tag db-gateway:latest ${env.DOCKER_REPOSITORY}/db-gateway:latest"
sh "docker push ${env.DOCKER_REPOSITORY}/${image}"
sh "docker push ${env.DOCKER_REPOSITORY}/${latest}"