From 70897ca82c9e1184a103002115a95fe48b4fc2a9 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 8 Mar 2020 07:19:03 +0100 Subject: [PATCH] use scp instead of rsync --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8d69b44..2dbd98e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,11 +35,13 @@ steps: commands: - git submodule init - git submodule update + - pacman -S scp - rm -rfv ./public - hugo --gc=true --minify - echo "$HUGO_KEY" > ~/hugo_deploy - chmod -v 600 ~/hugo_deploy #hellyeah - - rsync -ave 'ssh -vvvv -i ~/hugo_deploy -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no' --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR || true + - ssh -v -i ~/hugo_deploy -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no $HUGO_USER@$HUGO_HOST "rm -rfv $HUGO_DIR; mkdir -pv $HUGO_DIR" || true + - scp -v -i ~/hugo_deploy -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no public/* $HUGO_USER@$HUGO_HOST:$HUGO_DIR || true - shred -zuv 7 ~/hugo_deploy || true when: status: