Force build tag from computed semver
This commit is contained in:
parent
4c810078e2
commit
f286211363
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -142,6 +142,7 @@ spec:
|
||||
container('builder') {
|
||||
sh '''
|
||||
set -euo pipefail
|
||||
VERSION_TAG="$(cut -d= -f2 build.env)"
|
||||
docker buildx build \
|
||||
--platform linux/arm64 \
|
||||
--tag "${FRONT_IMAGE}:${VERSION_TAG}" \
|
||||
@ -159,6 +160,7 @@ spec:
|
||||
container('builder') {
|
||||
sh '''
|
||||
set -euo pipefail
|
||||
VERSION_TAG="$(cut -d= -f2 build.env)"
|
||||
docker buildx build \
|
||||
--platform linux/arm64 \
|
||||
--tag "${BACK_IMAGE}:${VERSION_TAG}" \
|
||||
@ -174,7 +176,10 @@ spec:
|
||||
|
||||
post {
|
||||
always {
|
||||
echo "Build complete for ${env.VERSION_TAG}"
|
||||
script {
|
||||
def props = fileExists('build.env') ? readProperties(file: 'build.env') : [:]
|
||||
echo "Build complete for ${props['SEMVER'] ?: env.VERSION_TAG}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user