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