Add drone fix 9/?: remove volume use and try use another output directory
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
28f686eb80
commit
96fc519b3c
19
.drone.yml
19
.drone.yml
|
@ -2,10 +2,6 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: live-output
|
|
||||||
temp: {}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: test-compiler
|
# - name: test-compiler
|
||||||
# image: archlinux
|
# image: archlinux
|
||||||
|
@ -16,15 +12,10 @@ steps:
|
||||||
- name: build-live
|
- name: build-live
|
||||||
image: klakegg/hugo:ext-alpine
|
image: klakegg/hugo:ext-alpine
|
||||||
commands:
|
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
|
- echo "help me" > /live-output/test.txt
|
||||||
- ls -la /
|
|
||||||
- ls -la /live-output
|
|
||||||
- pwd
|
- pwd
|
||||||
- ls -la .
|
- ls -la .
|
||||||
volumes:
|
|
||||||
- name: live-output
|
|
||||||
path: /live-output
|
|
||||||
- name: upload-live
|
- name: upload-live
|
||||||
image: eeacms/rsync
|
image: eeacms/rsync
|
||||||
commands:
|
commands:
|
||||||
|
@ -32,11 +23,9 @@ steps:
|
||||||
- echo "$CUSTOM_KEY" | ssh-add -
|
- echo "$CUSTOM_KEY" | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
- ls -la /live-output
|
- ls -la .
|
||||||
- rsync -rv -e "ssh -p 22" /live-output blog-live@danilafe.com:/var/www/blog-live --checksum
|
- ls -la build
|
||||||
|
- rsync -rv -e "ssh -p 22" /drone/src/build/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
|
||||||
environment:
|
environment:
|
||||||
CUSTOM_KEY:
|
CUSTOM_KEY:
|
||||||
from_secret: live_ssh_key
|
from_secret: live_ssh_key
|
||||||
volumes:
|
|
||||||
- name: live-output
|
|
||||||
path: /live-output
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user