Work around Jenkins'BS

This commit is contained in:
MassiveBox 2023-07-22 15:40:00 +02:00
parent d5d6aa4d08
commit 75423645ff
No known key found for this signature in database
GPG Key ID: 9B74D3A59181947D
1 changed files with 4 additions and 2 deletions

6
jenkins/Jenkinsfile vendored
View File

@ -59,8 +59,10 @@ pipeline {
stage('Build and push container on tag') {
when { buildingTag() }
steps {
def formattedTag = env.TAG_NAME.replaceFirst(/^v/, '')
sh 'docker buildx build --platform linux/amd64,linux/arm64 --push -t $DOCKER_REGISTRY/$SERVICE:$formattedTag .'
script {
def formattedTag = env.TAG_NAME.replaceFirst(/^v/, '')
sh 'docker buildx build --platform linux/amd64,linux/arm64 --push -t $DOCKER_REGISTRY/$SERVICE:$formattedTag .'
}
}
}