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" ] + 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' - } - } -} -