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 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 }} + 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 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 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