mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
3f22324595
commit
2d86de799a
1 changed files with 2 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -48,8 +48,7 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
echo "now we will tag the docker image"
|
||||
def dockerTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
|
||||
echo "The tag used for Docker image: ${dockerTag}"
|
||||
sh "docker tag imagine_spring_petclinic:0.1 mihaivalentingeorgescu/mr:0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +61,7 @@ pipeline {
|
|||
stage('Push to DockerHub') {
|
||||
steps {
|
||||
echo "now we will push to the docker file"
|
||||
sh 'docker push mihaivalentingeorgescu/imagine_spring_petclinic:0.1'
|
||||
sh 'docker push mihaivalentingeorgescu/mr:0.1'
|
||||
}
|
||||
}
|
||||
stage('Change stages') {
|
||||
|
|
Loading…
Reference in a new issue