Skip to content

Commit

Permalink
#22. Push real release tags (v4.*) and latest images.
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Aug 30, 2019
1 parent 9011498 commit 0f920a4
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions docker/dataverse-k8s/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,31 @@ pipeline {
}
}

stage('push-latest') {
stage('push') {
when {
anyOf {
branch 'master'
buildingTag()
tag "v4.*"
}
}
steps {
script {
docker.withRegistry("${env.registry}", "${env.hublogin}") {
docker_image.push("latest")
parallel {
stage('release') {
when { buildingTag() }
steps {
script {
docker.withRegistry("${env.registry}", "${env.hublogin}") {
docker_image.push("${env.TAG_NAME}")
}
}
}
}
stage('latest') {
steps {
script {
docker.withRegistry("${env.registry}", "${env.hublogin}") {
docker_image.push("latest")
}
}
}
}
}
Expand Down

0 comments on commit 0f920a4

Please sign in to comment.