Add drone fix 3/?: Split build and upload into steps
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d3515d3fa5
commit
9f8855a4d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user