Skip to content
Snippets Groups Projects
Commit a9be0ccc authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add docker login to Jenkinsfile

parent 89137869
No related branches found
No related tags found
No related merge requests found
...@@ -32,9 +32,14 @@ pipeline { ...@@ -32,9 +32,14 @@ pipeline {
when { when {
not { environment name: 'GIT_TAG', value: '' } not { environment name: 'GIT_TAG', value: '' }
} }
environment {
DOCKERHUB = credentials('dockerhub')
}
steps { steps {
sh 'docker login -u $DOCKERHUB_USR -p $DOCKERHUB_PSW'
sh 'make tag' sh 'make tag'
sh 'make push' sh 'make push'
sh 'docker logout'
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment