Skip to content

Commit

Permalink
Use sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ruby authored May 22, 2024
1 parent 535062d commit 4349d1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_PRIVATE_KEY }}
script: |
docker pull devruby/l2s-frontend:latest
docker stop l2s-frontend || true
docker rm l2s-frontend || true
docker run -d --name l2s-frontend -p 3001:3000 devruby/l2s-frontend:latest
sudo docker pull devruby/l2s-frontend:latest
sudo docker stop l2s-frontend || true
sudo docker rm l2s-frontend || true
sudo docker run -d --name l2s-frontend -p 3001:3000 devruby/l2s-frontend:latest
docker pull devruby/l2s-backend:latest
docker stop l2s-backend || true
docker rm l2s-backend || true
docker run -d --name l2s-backend -v l2s-data:/workspace/data -p 8001:8000 devruby/l2s-backend:latest
sudo docker pull devruby/l2s-backend:latest
sudo docker stop l2s-backend || true
sudo docker rm l2s-backend || true
sudo docker run -d --name l2s-backend -v l2s-data:/workspace/data -p 8001:8000 devruby/l2s-backend:latest

0 comments on commit 4349d1e

Please sign in to comment.