From acbf12758a9d76fb12ad8ee2c5297fabce908fc3 Mon Sep 17 00:00:00 2001 From: Lagozon Date: Mon, 6 May 2024 12:11:18 +0530 Subject: [PATCH 1/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58c79cde54..60d088ba25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: thetips4you/testjodejsapp + images: lagozon/anand - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc From 9fd3f84832339b3ade699723ae1b3efe93f5f3b9 Mon Sep 17 00:00:00 2001 From: Lagozon Date: Mon, 6 May 2024 12:16:42 +0530 Subject: [PATCH 2/5] Create mainik.yml --- .github/workflows/mainik.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/mainik.yml diff --git a/.github/workflows/mainik.yml b/.github/workflows/mainik.yml new file mode 100644 index 0000000000..aca45fa5d0 --- /dev/null +++ b/.github/workflows/mainik.yml @@ -0,0 +1,34 @@ +name: Publish Docker image + +on: + push: + branches: ['master'] + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: lagozon/anand + + - name: Build and push Docker image + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + From 48fc78ace8b9e260c4fbd9d8d5ab3c12ca9c8bcf Mon Sep 17 00:00:00 2001 From: Lagozon Date: Mon, 6 May 2024 12:20:15 +0530 Subject: [PATCH 3/5] Update deploymentservice.yml --- deploymentservice.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentservice.yml b/deploymentservice.yml index ab6f0b707d..40a25ae21e 100644 --- a/deploymentservice.yml +++ b/deploymentservice.yml @@ -16,7 +16,7 @@ spec: spec: containers: - name: nodeserver - image: thetips4you/nodeapp:latest + image: lagozon/anand:latest ports: - containerPort: 3000 From f9b7b52071513134d561568ea4b5ed032bde8113 Mon Sep 17 00:00:00 2001 From: Lagozon Date: Mon, 6 May 2024 12:20:46 +0530 Subject: [PATCH 4/5] Update deployment.yml --- deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.yml b/deployment.yml index 8468bbd661..95a1763d12 100644 --- a/deployment.yml +++ b/deployment.yml @@ -16,6 +16,6 @@ spec: spec: containers: - name: nodeserver - image: thetips4you/nodeapp:latest + image: lagozon/anand:latest ports: - containerPort: 3000 From 6be2c0c65d8e21a1774d95aa949522bc8bbbf62b Mon Sep 17 00:00:00 2001 From: Lagozon Date: Tue, 7 May 2024 11:08:14 +0530 Subject: [PATCH 5/5] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000000..9f67c79faf --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test