From 8177a0001f51d657db51286b272dad9907b9c441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20W=C3=B3jcik?= Date: Wed, 4 Jun 2025 11:22:46 +0200 Subject: [PATCH] Fix Docker image name references in build and push stages --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb9a2be..e29a4b2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,7 +57,7 @@ pipeline { stage('Build Docker Image') { steps { dockerBuild( - imageName: "${IMAGE_TAG}", + imageName: "${IMAGE_NAME}:${params.BUILD_ID}", dockerfile: "deployments/docker/Dockerfile", context: "deployments/docker" ) @@ -67,7 +67,7 @@ pipeline { stage('Push Docker Image') { steps { dockerPush( - imageName: "${IMAGE_TAG}", + imageName: "${IMAGE_NAME}:${params.BUILD_ID}", registry: "${DOCKER_REGISTRY}", credentialsId: "postio-bot-gitea" )