Skip to content

Commit

Permalink
#22. Push image with latest tag. For testing, restriction to master a…
Browse files Browse the repository at this point in the history
…nd tags is left out.
  • Loading branch information
poikilotherm committed Aug 30, 2019
1 parent 6eb3880 commit 5c7c4d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker/dataverse-k8s/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pipeline {
dockerfile = "./docker/dataverse-k8s/Dockerfile"
context = "./docker/dataverse-k8s"
imagetag = "build-${env.BUILD_ID}"
hublogin = "dockerhub-dataversebot"
registry = "https://registry.hub.docker.com"
}
stages {
stage('checkout') {
Expand All @@ -19,5 +21,23 @@ pipeline {
}
}
}

stage('push-latest') {
/*
when {
anyOf {
branch 'master'
buildingTag()
}
}
*/
steps {
script {
docker.withRegistry("${env.registry}", "${env.hublogin}") {
docker_image.push("latest")
}
}
}
}
}
}

0 comments on commit 5c7c4d7

Please sign in to comment.