Add drone fix 4/?: Use a drone volume to preserve storage
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
9f8855a4d3
commit
3ff5ce4dec
12
.drone.yml
12
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user