feat(ssh-copy): replace scp with rsync
This commit is contained in:
1 parent
0e2c8862e8
commit
3e2cae8924
2 files changed
+7
-3
No files matched your search
+6
-2
@@ -31,8 +31,12 @@ runs:
|
||||
shell: bash
|
||||
run: ssh-keyscan -H "${{ inputs.host }}" >> ~/.ssh/known_hosts
|
||||
|
||||
## replace with rsync for proper synchronization
|
||||
- name: copy directory
|
||||
- name: install rsync
|
||||
shell: bash
|
||||
run: sudo apt-get update && sudo apt-get install -y rsync
|
||||
|
||||
- name: rsync directory
|
||||
shell: bash
|
||||
run: |
|
||||
scp -r ${{ inputs.source }} ${{ inputs.user }}@${{ inputs.host }}:${{ inputs.target }}
|
||||
rsync -avz --delete ${{ inputs.source }} ${{ inputs.user }}@${{ inputs.host }}:${{ inputs.target }}
|
||||
Reference in new issue
Block a user