Use our configured credentials for publishing containers to DockerHub

This commit is contained in:
R. Tyler Croy 2017-06-29 13:41:54 -07:00
parent 931c35567b
commit c8252a1292
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -32,7 +32,9 @@ node('docker') {
/* Assuming we're not inside of a pull request or multibranch pipeline */
if (infra.isTrusted() && (!(env.CHANGE_ID || env.BRANCH_NAME))) {
stage('Publish container') {
timestamps { container.push() }
withCredentials([file(credentialsId: 'jenkins-dockerhub', variable: 'DOCKER_CONFIG')]) {
timestamps { container.push() }
}
}
}
}