From 31824422a26cee0161e9f5fc26bff4680015f2bf Mon Sep 17 00:00:00 2001 From: senatorovv <61406888+senatorovv@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:26:44 +0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' } } }