mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +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 {
|
steps {
|
||||||
echo 'Creating Docker Image...'
|
echo 'Creating Docker Image...'
|
||||||
sh '''
|
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') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Deploying....'
|
echo 'Deploying....'
|
||||||
|
|
Loading…
Reference in a new issue