File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2727 echo "$SSH_PRIVATE_KEY" > ~/.ssh/deployment_key
2828 chmod 600 ~/.ssh/deployment_key
2929 eval "$(ssh-agent -s)"
30- # Add the private key to the agent and provide the passphrase non-interactively
3130 echo "$VM_PASSPHRASE" | ssh-add ~/.ssh/deployment_key
3231
3332 - name : Add VM to known_hosts
3635
3736 - name : Synchronize Code with VM Using rsync
3837 env :
39- RSYNC_RSH : " ssh -i ~/.ssh/deployment_key -o IdentitiesOnly=yes" # Explicitly specify the SSH key for rsync
38+ RSYNC_RSH : " ssh -i ~/.ssh/deployment_key -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o MaxAuthTries=1 "
4039 run : |
41- rsync -avz --checksum --exclude='.git' ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/dev/
40+ rsync -avz --checksum --exclude='.env' --exclude='. git' ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/dev/
4241
4342 - name : Restart Docker Compose Services
4443
You can’t perform that action at this time.
0 commit comments