Add drone fix 9/?: remove volume use and try use another output directory
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danila Fedorin 2020-02-29 22:56:11 -08:00
parent 28f686eb80
commit 96fc519b3c
1 changed files with 4 additions and 15 deletions

View File

@ -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