diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 3b254a6..819ad67 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -73,10 +73,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") @@ -88,6 +84,10 @@ try { sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" } + } + + stage('Tag Repository') { + withCredentials( [usernamePassword( credentialsId: env.GITHUB_CREDENTIALS_ID,