mirror of
https://github.com/parrazam/radicale-docker.git
synced 2024-09-28 01:31:59 +02:00
Added latest tag for master branch
This commit is contained in:
parent
d93c0dd9c5
commit
a71b7ef8e7
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -17,7 +17,7 @@ pipeline {
|
||||||
if (env.BRANCH_NAME.startsWith('release/')) {
|
if (env.BRANCH_NAME.startsWith('release/')) {
|
||||||
VERSION = (env.BRANCH_NAME).tokenize('/')[1]
|
VERSION = (env.BRANCH_NAME).tokenize('/')[1]
|
||||||
} else if (env.BRANCH_NAME.equals('master')) {
|
} else if (env.BRANCH_NAME.equals('master')) {
|
||||||
VERSION = ''
|
VERSION = 'latest'
|
||||||
} else {
|
} else {
|
||||||
VERSION = 'unstable'
|
VERSION = 'unstable'
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
echo "Building ${TARGET_IMAGE} image..."
|
echo "Building ${TARGET_IMAGE} image..."
|
||||||
sh "docker pull ${SOURCE_IMAGE}"
|
sh "docker pull ${SOURCE_IMAGE}"
|
||||||
sh "docker buildx build -t ${TARGET_IMAGE} --platform ${PLATFORM} --build-arg VERSION=${PLATFORM.tokenize('/')[1]} ."
|
sh "docker buildx build -t ${TARGET_IMAGE} --platform ${PLATFORM} --build-arg VERSION=${VERSION} ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue