From e27dc813d264ebd02569a17b9d92ccbe0de8df35 Mon Sep 17 00:00:00 2001 From: Mihai Georgescu Date: Tue, 28 Nov 2023 12:24:32 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5dd74742f..35a00a297 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -69,14 +69,16 @@ pipeline { echo "this is the start of the new stage with the main branch" } } - stage('Create docker image for main branch') { + stage('Tag docker image again for the main repo') { steps { - echo "now we will create the docker image for the main branch" + echo "now we will tag the docker image for the main branch" + sh "docker tag imagine_spring_petclinic:0.1 mihaivalentingeorgescu/main:0.1" } } stage('Push docker image to main repository') { steps { echo "now we will push the image to the docker main repository" + sh 'docker push mihaivalentingeorgescu/main:0.1' } } }