diff options
| author | 2025-10-27 18:49:18 +0100 | |
|---|---|---|
| committer | 2025-10-27 18:49:18 +0100 | |
| commit | a8d5880f09b922fdf33a330dc9f90419c928f0ee (patch) | |
| tree | f3813bae7cfcef3c5802a06f912aac3b3cfe9349 | |
| parent | 9baf9d0c1dcf54bd2036d18ffe11a297642e29f8 (diff) | |
Added version tag
| -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 \ . |
