From b49ef0c526cbeeeafb957908a01a151dcea2904c Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 8 Mar 2020 05:44:34 +0100 Subject: [PATCH] fix: forgot about environment variables * or I hoped Drone would find out on its own --- .drone.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7a81f55..641ff61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,13 +23,22 @@ steps: - name: hugo-rsync-deploy pull: always image: immawanderer/archlinux-hugo:latest + environment: + hugo_key: + from_secret: hugo_key + hugo_user: + from_secret: hugo_user + hugo_host: + from_secret: hugo_host + hugo_dir: + from_secret: hugo_dir commands: - git submodule init - git submodule update - rm -rfv ./public - hugo --gc=true --minify - cat $hugo_key > hugo_deploy - - rsync -avze 'ssh -i hugo_deploy' --delete public/ $hugo_user@$hugo_host:$hugo_dir + - rsync -avze 'ssh -i ~/hugo_deploy' --delete public/ $hugo_user@$hugo_host:$hugo_dir - shred -zuv 7 hugo_deploy || true when: status: