From 2db08433687b6d2be1dae478c02375d685056f1a Mon Sep 17 00:00:00 2001 From: kothamasubharath <81374575+kothamasubharath@users.noreply.github.com> Date: Thu, 11 Aug 2022 12:57:15 +0530 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 10d70a2..a433c1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,3 +4,4 @@ COPY nodeapp/* / RUN npm install EXPOSE 3000 CMD [ "npm","start" ] + From 62acbb62e67fa0b0614990602c10c9f61e2faac0 Mon Sep 17 00:00:00 2001 From: kothamasubharath <81374575+kothamasubharath@users.noreply.github.com> Date: Thu, 17 Nov 2022 11:56:02 +0530 Subject: [PATCH 2/2] Delete Jenkinsfile --- Jenkinsfile | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 7c7a857..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,35 +0,0 @@ -pipeline { - agent any - environment { - DOCKERHUB_CREDENTIALS = credentials('valaxy-dockerhub') - } - stages { - stage('SCM Checkout') { - steps{ - git 'https://github.com/ravdy/nodejs-demo.git' - } - } - - stage('Build docker image') { - steps { - sh 'docker build -t valaxy/nodeapp:$BUILD_NUMBER .' - } - } - stage('login to dockerhub') { - steps{ - sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin' - } - } - stage('push image') { - steps{ - sh 'docker push valaxy/nodeapp:$BUILD_NUMBER' - } - } -} -post { - always { - sh 'docker logout' - } - } -} -