diff options
| -rw-r--r-- | Jenkinsfile | 3 |
1 files changed, 3 insertions, 0 deletions
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 \ . |
