diff --git a/.drone.yml b/.drone.yml index ebd3abd..5ab620e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,17 +32,14 @@ steps: from_secret: hugo_host HUGO_DIR: from_secret: hugo_dir - HUGO_PASSWD: - from_secret: hugo_passwd commands: - - pacman -Sy --needed --noconfirm sshpass - git submodule init - git submodule update - rm -rfv ./public - hugo --gc=true --minify - echo $HUGO_KEY > ./hugo_deploy - chmod -v 600 ./hugo_deploy - - rsync -av -e "sshpass -p $HUGO_PASSWD ssh -vv -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no" --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR + - rsync -av -e "ssh -vv -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no -i ./hugo_deploy" --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR - shred -zuv -n 7 ./hugo_deploy when: status: