fix: forgot about environment variables
Some checks failed
continuous-integration/drone/push Build is failing

* or I hoped Drone would find out on its own
This commit is contained in:
surtur 2020-03-08 05:44:34 +01:00
parent 1004979dde
commit b49ef0c526
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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: