From d591bea90370ab258b6f78d9fc802e106abc2c79 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 9 Jul 2020 11:02:35 +0200 Subject: [PATCH] fix: use rsync password file or die --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 47a9531..582f772 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,9 @@ steps: OL_D: from_secret: hugo_dir 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 ---