mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
0c999cd7e8
commit
524c603075
1 changed files with 9 additions and 1 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -27,10 +27,18 @@ pipeline {
|
|||
steps {
|
||||
echo 'Creating Docker Image...'
|
||||
sh '''
|
||||
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerdile
|
||||
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerfile
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Push artifact to docker registry') {
|
||||
steps {
|
||||
echo 'Push docker image tu registry'
|
||||
withDockerRegistry(credentialsId: 'dockerhub_id') {
|
||||
sh "docker push rodley/pet-clinic:${BUILD_NUMBER}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying....'
|
||||
|
|
Loading…
Reference in a new issue