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
|
- pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
|
||||||
- cd code/compiler
|
- cd code/compiler
|
||||||
- ./test.sh
|
- ./test.sh
|
||||||
- name: upload-live
|
- name: build-live
|
||||||
image: klakegg/hugo:ext-alpine
|
image: klakegg/hugo:ext-alpine
|
||||||
commands:
|
commands:
|
||||||
|
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /output
|
||||||
|
- name: upload-live
|
||||||
|
image: eeacms/rsync
|
||||||
|
commands:
|
||||||
- eval `ssh-agent -s`
|
- eval `ssh-agent -s`
|
||||||
- echo "$CUSTOM_KEY" | ssh-add -
|
- echo "$CUSTOM_KEY" | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
- hugo -D --baseUrl "http://danilafe.com:8080"
|
- rsync -rv -e "ssh -p 22" /output blog-live@danilafe.com:/var/www/blog-live --checksum
|
||||||
- rsync -rv -e "ssh -p 22" ./public blog-live@danilafe.com:/var/www/blog-live --checksum
|
|
||||||
environment:
|
environment:
|
||||||
CUSTOM_KEY:
|
CUSTOM_KEY:
|
||||||
from_secret: live_ssh_key
|
from_secret: live_ssh_key
|
||||||
|
|
Loading…
Reference in New Issue
Block a user