mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
changed image name
This commit is contained in:
parent
9b100e592b
commit
dce5e09763
2 changed files with 5 additions and 7 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -12,7 +12,7 @@ pipeline{
|
|||
}
|
||||
stage('artifact build'){
|
||||
steps{
|
||||
sh 'docker image build -t spc-3.9.4 .'
|
||||
sh 'docker image build -t spc-mvn .'
|
||||
sh 'docker image list'
|
||||
}
|
||||
}
|
||||
|
@ -26,13 +26,11 @@ pipeline{
|
|||
}
|
||||
stage('docker push image '){
|
||||
steps{
|
||||
// sh 'docker image build -t spc-3.9.4 .'
|
||||
sh 'docker image tag spc-3.9.4 sridhar006/spc-3.9.4:${BUILD_ID}'
|
||||
sh 'docker push sridhar006/spc-3.9.4:${BUILD_ID}'
|
||||
sh 'docker image tag spc-3.9.4 sridhar006/spc-mvn:${BUILD_ID}'
|
||||
sh 'docker push sridhar006/spc-mvn:${BUILD_ID}'
|
||||
|
||||
}
|
||||
}
|
||||
stage("kubernetes deployment"){
|
||||
} stage("kubernetes deployment"){
|
||||
steps{
|
||||
sh 'kubectl apply -f deployement.yaml'
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: springpet-clinic
|
||||
image: "sridhar006/spc-3.9.4:${BUILD_ID}"
|
||||
image: "sridhar006/spc-mvn:${BUILD_ID}"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
||||
|
|
Loading…
Reference in a new issue