Remove platform from target tag images in Jenkinsfile

This commit is contained in:
Parra 2022-02-27 18:44:40 +01:00
parent ecc301d337
commit 8e0d846ad1
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -49,10 +49,10 @@ pipeline {
stage("Build ${PLATFORM}") {
script {
SOURCE_IMAGE = SOURCE
TARGET_IMAGE = TARGET+':'+PLATFORM.tokenize('/')[1]
TARGET_IMAGE = TARGET
if (env.BRANCH_NAME.startsWith('release/')) {
SOURCE_IMAGE += ":" + VERSION
TARGET_IMAGE += "." + VERSION
TARGET_IMAGE += ":" + VERSION
} else {
TARGET_IMAGE += VERSION
}