mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Edit Jenkinsfile
This commit is contained in:
parent
b14897a798
commit
1f598ff6b2
1 changed files with 2 additions and 7 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -24,14 +24,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage ('Creating Docker image') {
|
||||
agent {
|
||||
docker {
|
||||
image 'docker:latest'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'docker build -t vkarpenko02/spring-petclinic:${GIT_COMMIT} .'
|
||||
sh 'docker push vkarpenko02/mr'
|
||||
sh 'docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/workspace -w /workspace docker:20.10 build -t vkarpenko02/spring-petclinic:${GIT_COMMIT} .'
|
||||
sh 'docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker:20.10 push vkarpenko02/spring-petclinic:${GIT_COMMIT}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue