From 8899f7138ea369ccab4d359029a06e83a452f575 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 10 Jul 2020 13:15:15 +0100 Subject: [PATCH] [10.07.20] Moved building of image to build step --- configuration/pipelines/build.groovy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index cea4a3c..bf34267 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -63,10 +63,6 @@ try { env.APPLICATION_VERSION, env.APPLICATION_LABEL) - } - - stage('Tag Repository') { - withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") docker.build("${env.APPLICATION_NAME}:latest") @@ -78,6 +74,11 @@ try { sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" } + } + + stage('Tag Repository') { + + withCredentials( [usernamePassword( credentialsId: env.GITHUB_CREDENTIALS_ID,