From 0a93e4049e9ad1fa77079ac66e6699f04cf98ff1 Mon Sep 17 00:00:00 2001 From: DEVSI SINGH <74105169+emily876@users.noreply.github.com> Date: Thu, 20 Jun 2024 22:30:58 +0530 Subject: [PATCH] Update deploy-prod.yaml --- .github/workflows/deploy-prod.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index 0a3484e..dd88ffc 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -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