Add drone fix 12/?: unset HUGO_TARGET
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danila Fedorin 2020-02-29 23:04:40 -08:00
parent 4bae586e36
commit f8adac8b76

View File

@ -2,19 +2,25 @@ kind: pipeline
type: docker
name: default
volumes:
- name: live-output
temp: {}
steps:
# - name: test-compiler
# image: archlinux
# commands:
# - pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
# - cd code/compiler
# - ./test.sh
- name: test-compiler
image: archlinux
commands:
- pacman -Sy cmake gcc make llvm bison flex gettext --noconfirm
- cd code/compiler
- ./test.sh
- name: build-live
image: klakegg/hugo:ext-alpine
commands:
- hugo -v -D --baseUrl "http://danilafe.com:8080" --destination /drone/src/build
- pwd
- ls -la .
- unset HUGO_DESTINATION
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /live-output
volumes:
- name: live-output
path: /live-output
- name: upload-live
image: eeacms/rsync
commands:
@ -22,9 +28,10 @@ steps:
- echo "$CUSTOM_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ls -la .
- ls -la build
- rsync -rv -e "ssh -p 22" /drone/src/build/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
- rsync -rv -e "ssh -p 22" /live-output/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
environment:
CUSTOM_KEY:
from_secret: live_ssh_key
volumes:
- name: live-output
path: /live-output