Authenticate before push-base, this should be refactored post-haste

This commit is contained in:
R. Tyler Croy 2016-08-03 22:09:34 -07:00
parent ceafa2a914
commit 15ba0cb2af
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -9,7 +9,14 @@ node('docker') {
sh './build-base.sh'
stage 'Push base RVM container'
sh './push-base.sh'
withCredentials([[$class: 'UsernamePasswordMultiBinding',
credentialsId: 'dockerhub',
passwordVariable: 'DOCKERHUB_TOKEN',
usernameVariable: 'DOCKERHUB_USERNAME']]) {
/* Our variables be exposed in the environment and we must log in before trying to publish to Dockerhub */
sh 'docker login --username=${DOCKERHUB_USERNAME} --email=tyler@monkeypox.org --password=${DOCKERHUB_TOKEN}'
sh './push-base.sh'
}
stage 'Build Containers for Rubies'
def stepsForParallel = [:]