From 93bcca7119f9a3bf2ed9386a41e1a80a74167a39 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 10 Mar 2020 02:49:03 +0100 Subject: [PATCH] add pubkey to the same dir --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5ab620e..df117bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,6 +26,8 @@ steps: environment: HUGO_KEY: from_secret: hugo_key + HUGO_PUB: + from_secret: hugo_pub HUGO_USER: from_secret: hugo_user HUGO_HOST: @@ -38,9 +40,10 @@ steps: - rm -rfv ./public - hugo --gc=true --minify - echo $HUGO_KEY > ./hugo_deploy + - echo $HUGO_PUB > ./hugo_deploy.pub - chmod -v 600 ./hugo_deploy - 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 + - shred -zuv -n 7 ./hugo_deploy* when: status: - success