mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-25 03:42:48 +00:00
add build image main stage
This commit is contained in:
parent
1242687824
commit
907b313c2c
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -63,9 +63,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
script {
|
||||
def docker_image=docker.build("main:8085/spring-petclinic:$GIT_COMMIT")
|
||||
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" main:8085'
|
||||
docker.withRegistry('http://main:8085') {
|
||||
def docker_image=docker.build("main:8083/spring-petclinic:$GIT_COMMIT")
|
||||
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" main:8083'
|
||||
docker.withRegistry('http://main:8083') {
|
||||
docker_image.push()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue