Skip to content

Commit

Permalink
correct registry url
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoch committed Dec 9, 2018
1 parent 8351297 commit 6ba62d7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ node('docker') {
}

stage('Push Image') {
docker.withRegistry('https://docker.io','docker public') {
def builtImage = docker.build("shocki/docker-alpine-oracle-jdk-arm",".")
builtImage.push()
docker.withRegistry('https://index.docker.io/v1','docker public') {
withCredentials([
usernamePassword(credentialsId: 'docker public',
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD')]) {
def builtImage = docker.build("${USERNAME}/docker-alpine-oracle-jdk-arm",".")
builtImage.push()
}
}
}
}

0 comments on commit 6ba62d7

Please sign in to comment.