Use checksum to skip files for rsync
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sam A. 2023-03-27 13:53:44 +02:00
parent 7bf7520ea0
commit 5caeddcd47
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -23,7 +23,7 @@ steps:
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -H cpx.servers.sapti.me > ~/.ssh/known_hosts
- rsync -avx --delete ./public cicd@cpx.servers.sapti.me:/opt/docker/nginx/website/
- rsync -acvx --delete ./public cicd@cpx.servers.sapti.me:/opt/docker/nginx/website/
when:
branch:
- main