Skip to content

Commit 140d0f0

Browse files
authored
Update main.yml
1 parent ef56f3c commit 140d0f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ jobs:
3535
interact
3636
"
3737
38-
- name: Add Azure VM to known_hosts
38+
- name: Add VM to known_hosts
3939
run: |
4040
ssh-keyscan -H ${{ secrets.VM_HOST }} >> ~/.ssh/known_hosts
4141
4242
- name: Synchronize Code with VM Using rsync
4343
env:
44-
RSYNC_RSH: "ssh"
44+
RSYNC_RSH: "ssh -i ~/.ssh/deployment_key" # Explicitly specify the SSH key
4545
run: |
4646
rsync -avz --checksum --exclude='.git' ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/dev/
4747

0 commit comments

Comments
 (0)