Edit Jenkinsfile

This commit is contained in:
Viktoriia Karpenko 2024-12-12 17:07:17 +02:00
parent 623fb38fba
commit b14897a798

5
Jenkinsfile vendored
View file

@ -24,6 +24,11 @@ pipeline {
} }
} }
stage ('Creating Docker image') { stage ('Creating Docker image') {
agent {
docker {
image 'docker:latest'
}
}
steps { steps {
sh 'docker build -t vkarpenko02/spring-petclinic:${GIT_COMMIT} .' sh 'docker build -t vkarpenko02/spring-petclinic:${GIT_COMMIT} .'
sh 'docker push vkarpenko02/mr' sh 'docker push vkarpenko02/mr'