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 8185e51 commit 8caf17b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ jobs:

- name: Build Docker Image
run: |
docker build -t instagram-reimaged-fe:latest .
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push salman4425/instagram-frontend-fe:instagram-reimaged-fe:latest
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: |
docker pull instagram-reimaged-fe:latest
docker run -d -p 3000:3001 --name instagram-reimaged-fe:latest
sudo docker pull instagram-reimaged-fe:latest
sudo docker run -d -p 3000:3001 --name instagram-reimaged-fe:latest

0 comments on commit 8caf17b

Please sign in to comment.