Grab all the right credentials for logging in via docker
This commit is contained in:
parent
df0de7843f
commit
d4f1d9a517
|
@ -15,9 +15,9 @@ node('docker') {
|
||||||
withCredentials([[$class: 'UsernamePasswordMultiBinding',
|
withCredentials([[$class: 'UsernamePasswordMultiBinding',
|
||||||
credentialsId: 'dockerhub',
|
credentialsId: 'dockerhub',
|
||||||
passwordVariable: 'DOCKERHUB_TOKEN',
|
passwordVariable: 'DOCKERHUB_TOKEN',
|
||||||
usernameVariable: 'DOCKERHUB_EMAIL']]) {
|
usernameVariable: 'DOCKERHUB_USERNAME']]) {
|
||||||
/* Our variables be exposed in the environment and we must log in before trying to publish to Dockerhub */
|
/* Our variables be exposed in the environment and we must log in before trying to publish to Dockerhub */
|
||||||
sh 'docker login --username rtyler --password ${DOCKERHUB_TOKEN}'
|
sh 'docker login --username=${DOCKERHUB_USERNAME} --email=tyler@monkeypox.org --password=${DOCKERHUB_TOKEN}'
|
||||||
sh './push-rubies.sh'
|
sh './push-rubies.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue