From ffb955c204e8fdac769928fb33b245d461a2c102 Mon Sep 17 00:00:00 2001 From: vky25 <93203895+vky25@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:02:26 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e66b108..ac32af4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { GCR_REGISTRY = "asia.gcr.io/upsmf-368011" IMAGE_NAME = "examsandadmissions-be-uat" BRANCH_NAME = "main" - IMAGE_TAG = "1.0" + IMAGE_TAG = "1.0" } stages { @@ -24,15 +24,15 @@ pipeline { stage('Build Docker Image') { steps { script { - def dockerTag = "${IMAGE_TAG}-${env.BUILD_NUMBER}" - def dockerImage = docker.build("${GCR_REGISTRY}/${IMAGE_NAME}:${dockerTag}") + def dockerTag = "${IMAGE_TAG}-${env.BUILD_NUMBER}" + def dockerImage = docker.build("${GCR_REGISTRY}/${IMAGE_NAME}:${dockerTag}") } } } stage('Push to GCR') { steps { script { - def dockerTag = "${IMAGE_TAG}-${env.BUILD_NUMBER}" + def dockerTag = "${IMAGE_TAG}-${env.BUILD_NUMBER}" sh "docker push ${GCR_REGISTRY}/${IMAGE_NAME}:${dockerTag}" } } -- GitLab