Skip to content

Commit

Permalink
Add additional step to Push to private repo
Browse files Browse the repository at this point in the history
The private repo is needed to run the docker security scan
  • Loading branch information
chubing authored 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
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 11491a9

Please sign in to comment.