Add drone fix 3/?: Split build and upload into steps
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danila Fedorin 2020-02-29 22:18:33 -08:00
parent d3515d3fa5
commit 9f8855a4d3
1 changed files with 6 additions and 3 deletions

View File

@ -9,15 +9,18 @@ steps:
- pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
- cd code/compiler
- ./test.sh
- name: upload-live
- name: build-live
image: klakegg/hugo:ext-alpine
commands:
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /output
- name: upload-live
image: eeacms/rsync
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
- rsync -rv -e "ssh -p 22" /output blog-live@danilafe.com:/var/www/blog-live --checksum
environment:
CUSTOM_KEY:
from_secret: live_ssh_key