From a88ae813462c48108d2435f4ffa978163d38ed57 Mon Sep 17 00:00:00 2001 From: karthibitcot11 Date: Sat, 7 Dec 2024 14:44:30 +0530 Subject: [PATCH 1/4] Update cicd-workflow.yml --- .github/workflows/cicd-workflow.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cicd-workflow.yml b/.github/workflows/cicd-workflow.yml index 774a406d..462bb788 100644 --- a/.github/workflows/cicd-workflow.yml +++ b/.github/workflows/cicd-workflow.yml @@ -13,17 +13,17 @@ jobs: - name: Login to docker hub run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - name: Build docker image - run: docker build -t integrationninjas/nodejs-app . + run: docker build -t karthi2611/nodejs-githubaction . - name: Publish image to docker hub - run: docker push integrationninjas/nodejs-app:latest + run: docker push karthi2611/nodejs-githubaction:latest - deploy: - needs: build - runs-on: [aws-ec2] - steps: - - name: Pull image from docker hub - run: docker pull integrationninjas/nodejs-app:latest - - name: Delete old container - run: docker rm -f nodejs-app-container - - name: Run docker container - run: docker run -d -p 5000:5000 --name nodejs-app-container integrationninjas/nodejs-app + # deploy: + # needs: build + # runs-on: [aws-ec2] + # steps: + # - name: Pull image from docker hub + # run: docker pull integrationninjas/nodejs-app:latest + # - name: Delete old container + # run: docker rm -f nodejs-app-container + # - name: Run docker container + # run: docker run -d -p 5000:5000 --name nodejs-app-container integrationninjas/nodejs-app From 51ecb1a7526e29142b673c9267de5ac19e01aae1 Mon Sep 17 00:00:00 2001 From: Madhunirmal Date: Sat, 7 Dec 2024 14:52:30 +0530 Subject: [PATCH 2/4] readme files updtaed --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00aeaf62..cdfc09c6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nodejs app with rest and graphql example -An example of GraphQL queries/mutations with Node and Express js. +An example of GraphQL queries/mutations with Node and Express js... With GraphQL, clients can specify exactly what data they need, and the server responds with only that data, reducing the amount of data transferred over the network. From 28b12d22fa87c282017e613e08b9e452ff8d8e73 Mon Sep 17 00:00:00 2001 From: Madhunirmal Date: Sat, 7 Dec 2024 14:54:31 +0530 Subject: [PATCH 3/4] Dockerfile updated --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5953f1f5..dde6e870 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,6 @@ COPY package.json ./ RUN npm install COPY . . EXPOSE 5000 -CMD ["npm","run","start"] \ No newline at end of file +CMD ["npm","run","start"] + +#run From 8cafd010875805228aac19176ec47d210d676f2b Mon Sep 17 00:00:00 2001 From: karthibitcot11 Date: Sat, 7 Dec 2024 15:05:59 +0530 Subject: [PATCH 4/4] Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dde6e870..8fc3e942 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +#Dockerfile FROM node:16.20.1 WORKDIR /app COPY package.json ./ @@ -6,4 +7,4 @@ COPY . . EXPOSE 5000 CMD ["npm","run","start"] -#run +