Push docker image step

This commit is contained in:
JustFiesta 2024-04-30 13:14:53 +02:00
parent 78af55e81f
commit 22f10e915f

7
Jenkinsfile vendored
View file

@ -35,7 +35,6 @@ pipeline {
sh 'docker build -t $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT} .'
}
}
stage('Docker Login') {
steps {
echo 'Nexus Docker Repository Login'
@ -47,6 +46,12 @@ pipeline {
}
}
}
stage('Docker Push') {
steps {
echo 'Pushing Image to docker hub'
sh 'docker push $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT}'
}
}
}
post {