diff --git a/.drone.yml b/.drone.yml index 6afed54..c6da5aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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