From f9fcb6021510a1f5a091f9bcc3e0bef765893dfb Mon Sep 17 00:00:00 2001 From: Muhammad Salman Aziz <85288719+salman-aziz-4425@users.noreply.github.com> Date: Tue, 26 Dec 2023 13:13:33 +0500 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 42 ++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 06e1647..7904899 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,26 +23,28 @@ jobs: cache: 'npm' - name: Install Dependencies - run: npm ci + run: | + npm ci + nohup npm run dev - docker-build: - runs-on: self-hosted - needs: build - steps: - - name: Checkout Repository - uses: actions/checkout@v3 + # docker-build: + # runs-on: self-hosted + # needs: build + # steps: + # - name: Checkout Repository + # uses: actions/checkout@v3 - - name: Build Docker Image - run: | - sudo docker build -t instagram-reimaged-fe:latest . - sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - sudo docker push salman4425/instagram-frontend-fe:instagram-reimaged-fe:latest + # - name: Build Docker Image + # run: | + # sudo docker build -t instagram-reimaged-fe:latest . + # sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + # sudo docker push salman4425/instagram-frontend-fe:instagram-reimaged-fe:latest - deploy: - runs-on: self-hosted - needs: docker-build - steps: - - name: Deploy with Docker - run: | - sudo docker pull instagram-reimaged-fe:latest - sudo docker run -d -p 3000:3001 --name instagram-reimaged-fe:latest + # deploy: + # runs-on: self-hosted + # needs: docker-build + # steps: + # - name: Deploy with Docker + # run: | + # sudo docker pull instagram-reimaged-fe:latest + # sudo docker run -d -p 3000:3001 --name instagram-reimaged-fe:latest