From dce5e0976331e952eec05a7e839a57652d3d305f Mon Sep 17 00:00:00 2001 From: sridhar Date: Sat, 9 Sep 2023 11:56:13 +0530 Subject: [PATCH] changed image name --- Jenkinsfile | 10 ++++------ deployement.yaml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 34e55f0ab..f9a23745f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } diff --git a/deployement.yaml b/deployement.yaml index 29a0cd16e..cd6fdcd90 100644 --- a/deployement.yaml +++ b/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