|
@@ -10,12 +10,17 @@ steps:
|
|
|
# Run tests against Python/Flask engine backend (with pytest)
|
|
|
- name: build and push
|
|
|
image: klakegg/hugo
|
|
|
+ environment:
|
|
|
+ sshkey:
|
|
|
+ from_secret: key
|
|
|
commands:
|
|
|
# Install dependencies
|
|
|
- wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
|
|
|
- tar zxvf hugo_0.110.0_linux-amd64.tar.gz
|
|
|
# Start with a fresh database (which is already running as a service from Drone)
|
|
|
- hugo
|
|
|
+ - ssh-add <(echo $sshkey)
|
|
|
+ - rsync -avz --delete public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
|
|
|
volumes:
|
|
|
- name: docker
|
|
|
host:
|