Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bump tomcat, add push to new registry
  • Loading branch information
pcaskey committed Jun 23, 2020
1 parent 85c6540 commit c8a9fba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -6,11 +6,11 @@ FROM centos:centos7
#
##tomcat \
ENV TOMCAT_MAJOR=9 \
TOMCAT_VERSION=9.0.35 \
TOMCAT_VERSION=9.0.36 \
##shib-idp \
VERSION=4.0.1 \
##TIER \
TIERVERSION=20200603 \
TIERVERSION=20200623 \
#################### \
#### OTHER VARS #### \
#################### \
Expand Down
10 changes: 10 additions & 0 deletions Jenkinsfile
Expand Up @@ -79,6 +79,11 @@ node('docker') {
def baseImg = docker.build("$maintainer/$imagename")
baseImg.push("$tag")
}

docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def altImg = docker.build("$previous_maintainer/$imagename")
altImg.push("$tag")
}

stage 'Notify'

Expand All @@ -88,6 +93,11 @@ node('docker') {

def maintainer() {
def matcher = readFile('common.bash') =~ 'maintainer="(.+)"'
matcher ? matcher[0][1] : 'i2incommon'
}

def previous_maintainer() {
def matcher = readFile('common.bash') =~ 'previous_maintainer="(.+)"'
matcher ? matcher[0][1] : 'tier'
}

Expand Down
3 changes: 2 additions & 1 deletion common.bash
@@ -1,3 +1,4 @@
maintainer="tier"
maintainer="i2incommon"
previous_maintainer="tier"
imagename="shib-idp"

0 comments on commit c8a9fba

Please sign in to comment.