Skip to content

Commit

Permalink
VM
Browse files Browse the repository at this point in the history
  • Loading branch information
hangtantai committed Nov 27, 2024
1 parent 6951a2d commit 7339bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_SSH_KEY }}
script: |
scp -i ${{ secrets.VM_SSH_KEY }} -o StrictHostKeyChecking=no my-backend.tar ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }}:${{ secrets.VM_USERNAME }}/my-backend.tar
ssh -i ${{ secrets.VM_SSH_KEY }} -o StrictHostKeyChecking=no ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} "
scp -o StrictHostKeyChecking=no my-backend.tar ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }}:${{ secrets.VM_USERNAME }}/my-backend.tar
ssh -o StrictHostKeyChecking=no ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} "
docker load -i /home/${{ secrets.VM_USERNAME }}/my-backend.tar &&
rm /home/${{ secrets.VM_USERNAME }}/my-backend.tar &&
docker run -d --name my-backend-container -p 80:80 my-backend:latest"
1 change: 1 addition & 0 deletions hello-world.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
print("HH")
print("HH")
print("HH")
print("HH")
print("HH")

0 comments on commit 7339bea

Please sign in to comment.