Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
salman-aziz-4425 authored Dec 26, 2023
1 parent 16ec20a commit 5538f5f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ jobs:
run: |
npm ci
# 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 salman4425/instagram-frontend-fe:v1.0 .
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker push salman4425/instagram-frontend-fe:v1.0
# 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 salman4425/instagram-frontend-fe:v1.0
sudo docker run -d -p 3000:3001 --name salman4425/instagram-frontend-fe:v1.0

0 comments on commit 5538f5f

Please sign in to comment.