Skip to content

Commit

Permalink
Update deploy-prod.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh authored Jun 20, 2024
1 parent 42eed66 commit 0a93e40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
port: ${{ secrets.PROD_SSH_PORT }}
script: |
pwd
docker stop sotreus-frontend || true && docker image rm ghcr.io/netsepio/sotreus-frontend:prod
docker stop sotreus-frontend && docker rm sotreus-frontend
docker rmi ghcr.io/netsepio/sotreus-frontend:prod
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
docker pull ghcr.io/netsepio/sotreus-frontend:prod
docker run --name="sotreus-frontend" --rm -p 4040:8080 --net=bridge -d ghcr.io/netsepio/sotreus-frontend:prod
docker run --name="sotreus-frontend" --restart=unless-stopped -p 4040:8080 --net=bridge -d ghcr.io/netsepio/sotreus-frontend:prod

0 comments on commit 0a93e40

Please sign in to comment.