diff --git a/.drone.yml b/.drone.yml index 5754808..b620ee1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,10 +2,6 @@ kind: pipeline type: docker name: default -volumes: - - name: live-output - temp: {} - steps: # - name: test-compiler # image: archlinux @@ -16,15 +12,10 @@ steps: - name: build-live image: klakegg/hugo:ext-alpine commands: - - hugo -D --baseUrl="http://danilafe.com:8080" --destination="/live-output" + - hugo -D --baseUrl "http://danilafe.com:8080" --destination /drone/src/build - echo "help me" > /live-output/test.txt - - ls -la / - - ls -la /live-output - pwd - ls -la . - volumes: - - name: live-output - path: /live-output - name: upload-live image: eeacms/rsync commands: @@ -32,11 +23,9 @@ steps: - echo "$CUSTOM_KEY" | ssh-add - - mkdir -p ~/.ssh - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - - ls -la /live-output - - rsync -rv -e "ssh -p 22" /live-output blog-live@danilafe.com:/var/www/blog-live --checksum + - 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 - volumes: - - name: live-output - path: /live-output