diff --git a/.drone.yml b/.drone.yml index d62dd8a..e1d150a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,14 +24,14 @@ steps: environment: OL: from_secret: hugo_user - OL_P: - from_secret: hugo_passwd + OL_K: + from_secret: hugo_k OL_D: from_secret: hugo_dir commands: - - export DAT_DIR=$OL_D - - export RSYNC_PASSWORD=$OL_P - - rsync --rsh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --delete chown $OL public/ $OL@dotya.ml:$DAT_DIR + - echo $OL_K > ol_k + - chmod -v 0600 ./ol_k + - rsync --rsh="ssh -i ./ol_k -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --delete chown $OL public/ $OL@dotya.ml:$OL_D ---