-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|