diff --git a/Jenkinsfile b/Jenkinsfile index 838ec6c31..b16d8d10d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline{ } // stage('artifact build'){ // steps{ - // sh 'docker image build -t spc-mvn-3.9.4 .' + // sh 'docker image build -t spc-3.9.4 .' // sh 'docker image list' // } // } @@ -26,9 +26,9 @@ pipeline{ } stage('docker push image '){ steps{ - sh 'docker image build -t spc-mvn-3.9.4 .' - sh 'docker image tag spc-mvn-3.9.4:${BUILD_ID}' - sh 'docker push sridhar006/spc-mvn-3.9.4:${BUILD_ID}' + sh 'docker image build -t spc-3.9.4 .' + sh 'docker image tag spc-3.9.4 spc-3.9.4:${BUILD_ID}' + sh 'docker push sridhar006/spc-3.9.4:${BUILD_ID}' } } diff --git a/deployement.yaml b/deployement.yaml index 7d9a9be5f..064d20082 100644 --- a/deployement.yaml +++ b/deployement.yaml @@ -25,7 +25,7 @@ spec: spec: containers: - name: springpet-clinic - image: sridhar006/spc-mvn-3.9.4:3 + image: sridhar006/spc-3.9.4:${BUILD_ID} ports: - containerPort: 8080