From 6f9ed7309599b86df64829a78690a567524f50cd Mon Sep 17 00:00:00 2001 From: Mpho Majenge Date: Sat, 25 May 2024 14:15:49 +0200 Subject: [PATCH] add dockerfile path --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 195acb09..fd1cb966 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { RELEASE_VERSION = readFile('version').trim() IMAGE_REPO = "${IMAGE_NAME}:${RELEASE_VERSION}" PLATFORM = 'linux/amd64,linux/arm64' + DOCKERFILE_PATH = 'images/production/Containerfile' } stages { stage('Login to image Repository') { @@ -24,7 +25,7 @@ pipeline { stage('Build Image') { steps { script { - sh "docker buildx build --platform $PLATFORM --cache-from type=local,src=$IMAGE_REPO --cache-to type=local,dest=/tmp/.buildx-cache --push --tag $IMAGE_REPO ." + sh "docker buildx build --platform $PLATFORM --cache-from type=local,src=$IMAGE_REPO --cache-to type=local,dest=/tmp/.buildx-cache --push --tag $IMAGE_REPO $DOCKERFILE_PATH" } } }