fix: forgot about environment variables
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
1004979dde
commit
b49ef0c526
11
.drone.yml
11
.drone.yml
@ -23,13 +23,22 @@ steps:
|
|||||||
- name: hugo-rsync-deploy
|
- name: hugo-rsync-deploy
|
||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/archlinux-hugo:latest
|
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:
|
commands:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- rm -rfv ./public
|
- rm -rfv ./public
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
- cat $hugo_key > hugo_deploy
|
- 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
|
- shred -zuv 7 hugo_deploy || true
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
|
Loading…
Reference in New Issue
Block a user