fix: use rsync password file or die
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2020-07-09 11:02:35 +02:00
parent 7be4704325
commit d591bea903
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -29,7 +29,9 @@ steps:
OL_D: OL_D:
from_secret: hugo_dir from_secret: hugo_dir
commands: commands:
- RSYNC_PASSWORD=$OL_P rsync --rsh="ssh -v -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=password" -av --delete chown $OL public/ $OL@dotya.ml:$OL_D - echo $OL_P > /pw_f
- chmod -v 0600 /pw_f
- rsync --password-file=/pw_f --rsh="ssh -v -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --delete chown $OL public/ $OL@dotya.ml:$OL_D
--- ---