Skip to content

Commit

Permalink
fix: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhJae committed Sep 3, 2024
1 parent 9e303c3 commit 969b454
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Save Docker image as tarball
run: |
docker save bluescript:latest | gzip > bluescript.tar.gz
docker save bluescript:latest -o bluescript.tar
gzip bluescript.tar
- name: Set up SSH
uses: webfactory/[email protected]
Expand All @@ -44,7 +45,8 @@ jobs:
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} << 'ENDSSH'
cd ${{ secrets.SERVER_DEPLOY_PATH }}
gunzip -c bluescript.tar.gz | sudo docker load
gunzip -c bluescript.tar.gz > bluescript.tar
sudo docker load -i bluescript.tar
sudo docker stop bluescript || true
sudo docker rm bluescript || true
sudo docker run -d --name bluescript --network web -p 3000:3000 bluescript:latest
Expand Down

0 comments on commit 969b454

Please sign in to comment.