mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
changed image tags
This commit is contained in:
parent
8403b8c4de
commit
3f88b318d4
2 changed files with 5 additions and 5 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -12,7 +12,7 @@ pipeline{
|
||||||
}
|
}
|
||||||
// stage('artifact build'){
|
// stage('artifact build'){
|
||||||
// steps{
|
// steps{
|
||||||
// sh 'docker image build -t spc-mvn-3.9.4 .'
|
// sh 'docker image build -t spc-3.9.4 .'
|
||||||
// sh 'docker image list'
|
// sh 'docker image list'
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
@ -26,9 +26,9 @@ pipeline{
|
||||||
}
|
}
|
||||||
stage('docker push image '){
|
stage('docker push image '){
|
||||||
steps{
|
steps{
|
||||||
sh 'docker image build -t spc-mvn-3.9.4 .'
|
sh 'docker image build -t spc-3.9.4 .'
|
||||||
sh 'docker image tag spc-mvn-3.9.4:${BUILD_ID}'
|
sh 'docker image tag spc-3.9.4 spc-3.9.4:${BUILD_ID}'
|
||||||
sh 'docker push sridhar006/spc-mvn-3.9.4:${BUILD_ID}'
|
sh 'docker push sridhar006/spc-3.9.4:${BUILD_ID}'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: springpet-clinic
|
- name: springpet-clinic
|
||||||
image: sridhar006/spc-mvn-3.9.4:3
|
image: sridhar006/spc-3.9.4:${BUILD_ID}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue