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 type: docker
name: default name: default
volumes:
- name: live-output
temp: {}
steps: steps:
- name: test-compiler - name: test-compiler
image: archlinux image: archlinux
@ -12,7 +16,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 /output - hugo -D --baseUrl "http://danilafe.com:8080" --destination /live-output
volumes:
- name: live-output
path: /live-output
- name: upload-live - name: upload-live
image: eeacms/rsync image: eeacms/rsync
commands: commands:
@ -24,3 +31,6 @@ steps:
environment: environment:
CUSTOM_KEY: CUSTOM_KEY:
from_secret: live_ssh_key from_secret: live_ssh_key
volumes:
- name: live-output
path: /live-output