mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
bug fixing
This commit is contained in:
parent
059954ae34
commit
ee7775d2ad
1 changed files with 4 additions and 2 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -32,9 +32,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Build Image') {
|
stage('Build Image') {
|
||||||
agent {
|
agent {
|
||||||
|
docker {
|
||||||
image 'docker:20.10.16'
|
image 'docker:20.10.16'
|
||||||
args '--privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
args '--privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084'
|
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084'
|
||||||
sh 'docker build -t mr:8084/spring-petclinic:${GIT_COMMIT} .'
|
sh 'docker build -t mr:8084/spring-petclinic:${GIT_COMMIT} .'
|
||||||
|
|
Loading…
Reference in a new issue