mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
2d86de799a
commit
e27dc813d2
1 changed files with 4 additions and 2 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -69,14 +69,16 @@ pipeline {
|
||||||
echo "this is the start of the new stage with the main branch"
|
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 {
|
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') {
|
stage('Push docker image to main repository') {
|
||||||
steps {
|
steps {
|
||||||
echo "now we will push the image to the docker main repository"
|
echo "now we will push the image to the docker main repository"
|
||||||
|
sh 'docker push mihaivalentingeorgescu/main:0.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue