Add drone fix 12/?: unset HUGO_TARGET
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4bae586e36
commit
f8adac8b76
31
.drone.yml
31
.drone.yml
|
@ -2,19 +2,25 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: live-output
|
||||||
|
temp: {}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: test-compiler
|
- name: test-compiler
|
||||||
# image: archlinux
|
image: archlinux
|
||||||
# commands:
|
commands:
|
||||||
# - 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: build-live
|
- name: build-live
|
||||||
image: klakegg/hugo:ext-alpine
|
image: klakegg/hugo:ext-alpine
|
||||||
commands:
|
commands:
|
||||||
- hugo -v -D --baseUrl "http://danilafe.com:8080" --destination /drone/src/build
|
- unset HUGO_DESTINATION
|
||||||
- pwd
|
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /live-output
|
||||||
- ls -la .
|
volumes:
|
||||||
|
- name: live-output
|
||||||
|
path: /live-output
|
||||||
- name: upload-live
|
- name: upload-live
|
||||||
image: eeacms/rsync
|
image: eeacms/rsync
|
||||||
commands:
|
commands:
|
||||||
|
@ -22,9 +28,10 @@ steps:
|
||||||
- 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
|
||||||
- ls -la .
|
- rsync -rv -e "ssh -p 22" /live-output/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
|
||||||
- ls -la build
|
|
||||||
- rsync -rv -e "ssh -p 22" /drone/src/build/ 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
|
||||||
|
volumes:
|
||||||
|
- name: live-output
|
||||||
|
path: /live-output
|
||||||
|
|
Loading…
Reference in New Issue
Block a user