From 9f8855a4d37ea3031a0ffe0f86b585eb8b97d256 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 29 Feb 2020 22:18:33 -0800 Subject: [PATCH] Add drone fix 3/?: Split build and upload into steps --- .drone.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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