diff --git a/Jenkinsfile b/Jenkinsfile index 48c067739..568be79b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,14 +9,14 @@ pipeline { } stage('Docker Build') { steps { - sh 'docker build -t shanem/spring-petclinic:latest .' + sh 'docker build -t registry.hub.docker.com/hybrid2k3/petclinic:1 .' } } stage('Docker Push') { steps { withCredentials([usernamePassword(credentialsId: 'dockerHub', passwordVariable: 'dockerHubPassword', usernameVariable: 'dockerHubUser')]) { sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}" - sh 'docker push shanem/spring-petclinic:latest' + sh 'docker push registry.hub.docker.com/hybrid2k3/petclinic:1' } } }