mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 14:29:37 +00:00
add build image
This commit is contained in:
parent
a0807d5f3a
commit
2ba17ecb45
1 changed files with 11 additions and 0 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -30,5 +30,16 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Build Image') {
|
||||||
|
agent {
|
||||||
|
image 'docker:20.10.16'
|
||||||
|
args '--privileged -v /var/ryn/docker.sock:/var/run/docker.sock'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084'
|
||||||
|
sh 'docker build -t mr:8084/spring-petclinic:$GITCOMMIT .'
|
||||||
|
sh 'docker push mr:8084/spring-petclinic:$GITCOMMIT'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue