blog-static/.drone.yml

32 lines
860 B
YAML

kind: pipeline
type: docker
name: default
steps:
# - 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 -D --baseUrl "http://danilafe.com:8080" --destination /drone/src/build
- echo "help me" > /live-output/test.txt
- pwd
- ls -la .
- 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
- ls -la .
- ls -la build
- rsync -rv -e "ssh -p 22" /drone/src/build/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
environment:
CUSTOM_KEY:
from_secret: live_ssh_key