Commit c31a82cb authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent e07ff832
......@@ -38,21 +38,16 @@ pipeline {
}
stage('Building image') {
steps{
script {
dockerImage = docker.build registry
}
stage('Building docker image odoo-demo and pushing'){
steps {
sh 'docker build -t ndiop/repo1:odoo-15.0
withCredentials([usernamePassword(credentialsId: 'docker-hub-ndiop', passwordVariable: 'Password', usernameVariable: 'Username')]) {
sh ('docker login -u ${env.Username} -p ${env.Password}')
sh 'docker push ndiop/repo1:odoo-15.0'
}
}
stage('push Image') {
steps{
script {
docker.withRegistry( '', docker-hub-ndiop ) {
dockerImage.push()
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment