blog-static/.drone.yml
Danila Fedorin 277427af57
Some checks failed
continuous-integration/drone/push Build is failing
Add drone fix 1/?: set up ssh-agent
2020-02-29 21:52:01 -08:00

24 lines
655 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test-compiler
image: archlinux
commands:
- pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
- cd code/compiler
- ./test.sh
- name: upload-live
image: jguyomard/hugo-builder
commands:
- eval `ssh-agent -s`
- echo "$CUSTOM_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- hugo -D --baseUrl "http://danilafe.com:8080"
- rsync -rv -e "ssh -p 22" ./public blog-live@danilafe.com:/var/www/blog-live --checksum
environment:
CUSTOM_KEY:
from_secret: live_ssh_key