forked from massivebox/ecodash
Work around Jenkins'BS
This commit is contained in:
parent
d5d6aa4d08
commit
75423645ff
2
jenkins/Jenkinsfile
vendored
2
jenkins/Jenkinsfile
vendored
|
@ -59,10 +59,12 @@ pipeline {
|
||||||
stage('Build and push container on tag') {
|
stage('Build and push container on tag') {
|
||||||
when { buildingTag() }
|
when { buildingTag() }
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
def formattedTag = env.TAG_NAME.replaceFirst(/^v/, '')
|
def formattedTag = env.TAG_NAME.replaceFirst(/^v/, '')
|
||||||
sh 'docker buildx build --platform linux/amd64,linux/arm64 --push -t $DOCKER_REGISTRY/$SERVICE:$formattedTag .'
|
sh 'docker buildx build --platform linux/amd64,linux/arm64 --push -t $DOCKER_REGISTRY/$SERVICE:$formattedTag .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Publish built files') {
|
stage('Publish built files') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue