Commit 39ab51b5 authored by Muhammad Suleman's avatar Muhammad Suleman

Update Jenkinsfile

parent 2f78996b
...@@ -18,9 +18,9 @@ pipeline { ...@@ -18,9 +18,9 @@ pipeline {
stage('Push Docker Image to Docker Hub') { stage('Push Docker Image to Docker Hub') {
steps { steps {
withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials', usernameVariable: 'sulemantalpur6', passwordVariable: 'Talpur226##')]) { withCredentials([usernamePassword(credentialsId: 'dockerHub', usernameVariable: 'DOCKER_HUB_USERNAME', passwordVariable: 'DOCKER_HUB_PASSWORD')]) {
sh "docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD" sh "docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD"
sh "docker push your-image-name:tag" } sh "docker push frontend:latest" }
} }
} }
} }
......
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