Skip to content

Commit

Permalink
vm
Browse files Browse the repository at this point in the history
  • Loading branch information
hangtantai committed Nov 26, 2024
1 parent 5a32e9e commit 3aee1dd
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 @@ -29,10 +29,10 @@ jobs:
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_SSH_KEY }}
key: ~/.ssh/dizim-hcmus-azure-rsa.pem
source: "my-backend.tar"
target: "/home/azureuser/docker-images/my-backend.tar"

- name: Load Docker image on VM
run: |
ssh -i ${{ secrets.VM_SSH_KEY }} ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} 'docker load -i /home/azureuser/docker-images/my-backend.tar'
ssh -i ~/.ssh/dizim-hcmus-azure-rsa.pem ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} 'docker load -i /home/azureuser/docker-images/my-backend.tar'
1 change: 1 addition & 0 deletions hello-world.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
print("Hello-world")
print("___")
print("")
print("")

0 comments on commit 3aee1dd

Please sign in to comment.