From 6e4c940cd2249ae5a2467c38efcdd8019cf555a8 Mon Sep 17 00:00:00 2001 From: sridhar Date: Fri, 8 Sep 2023 17:17:57 +0530 Subject: [PATCH] added dockerfile --- Jenkinsfile | 6 +++--- deployement.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e915a326..de75d9c19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline{ } stage('artifact build'){ steps{ - sh 'docker image build -t sridhar006 .' + sh 'docker image build -t spc-mvn:3.9.4 .' sh 'docker image list' } } @@ -27,8 +27,8 @@ pipeline{ stage('docker push image '){ steps{ sh 'docker image build -t spc123 .' - sh 'docker image tag spc123 sridhar006/spc-jenkins:${BUILD_ID}' - sh 'docker push sridhar006/spc-jenkins:${BUILD_ID}' + sh 'docker image tag spc123 sridhar006/spc-mvn:3.9.4:${BUILD_ID}' + sh 'docker push sridhar006/spc-mvn:3.9.4:${BUILD_ID}' } } diff --git a/deployement.yaml b/deployement.yaml index d8c81c77c..bd503b3a5 100644 --- a/deployement.yaml +++ b/deployement.yaml @@ -25,7 +25,7 @@ spec: spec: containers: - name: nop - image: spc-jenkins + image: spc-mvn:3.9.4:${BUILD_ID} ports: - containerPort: 8080