Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add additional step to Push to private repo
The private repo is needed to run the docker security scan
chubing committed Jun 12, 2017
1 parent 6ef9398 commit 11491a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
@@ -67,6 +67,11 @@ node('docker') {
def baseImg = docker.build("$maintainer/$imagename")
baseImg.push("$tag")
}
// Push to private repo to do security scan on container
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/security-scan-$imagename")
baseImg.push("$tag")
}

stage 'Notify'

0 comments on commit 11491a9

Please sign in to comment.