Skip to content

Commit

Permalink
build again but it should be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoch committed Dec 9, 2018
1 parent 8147fae commit 431d863
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ node('docker') {

stage('Push Image') {
docker.withRegistry('https://docker.io','docker public') {
builtImage.push()
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 431d863

Please sign in to comment.