Add drone fix 4/?: Use a drone volume to preserve storage
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danila Fedorin 2020-02-29 22:29:26 -08:00
parent 9f8855a4d3
commit 3ff5ce4dec
1 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,10 @@ kind: pipeline
type: docker
name: default
volumes:
- name: live-output
temp: {}
steps:
- name: test-compiler
image: archlinux
@ -12,7 +16,10 @@ steps:
- name: build-live
image: klakegg/hugo:ext-alpine
commands:
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /output
- hugo -D --baseUrl "http://danilafe.com:8080" --destination /live-output
volumes:
- name: live-output
path: /live-output
- name: upload-live
image: eeacms/rsync
commands:
@ -24,3 +31,6 @@ steps:
environment:
CUSTOM_KEY:
from_secret: live_ssh_key
volumes:
- name: live-output
path: /live-output