From a8d5880f09b922fdf33a330dc9f90419c928f0ee Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Mon, 27 Oct 2025 18:49:18 +0100 Subject: Added version tag --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index dcf4458..09333fa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,6 +35,7 @@ pipeline { steps { script { env.GIT_SHA = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim() + env.VERSION = sh(script: "cat src/version", returnStdout: true).trim() // compose image name + tags env.GROUP_ID = "com.it-jaros.git" @@ -61,6 +62,7 @@ pipeline { DOCKER_BUILDKIT=1 docker buildx build \ --platform ${PLATFORMS} \ -t ${IMAGE_NAME}:${GIT_SHA} \ + -t ${IMAGE_NAME}:${VERSION} \ -t ${IMAGE_NAME}:latest \ --push \ . @@ -85,6 +87,7 @@ pipeline { DOCKER_BUILDKIT=1 docker buildx build \ --platform ${PLATFORMS} \ -t jarlucmat/git-server:${GIT_SHA} \ + -t jarlucmat/git-server:${VERSION} \ -t jarlucmat/git-server:latest \ --push \ . -- cgit v1.3.1