From 3ff5ce4dec600238d5ed59a6584e492b1bf21009 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 29 Feb 2020 22:29:26 -0800 Subject: [PATCH] Add drone fix 4/?: Use a drone volume to preserve storage --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c6da5aa..160a04f 100644 --- a/.drone.yml +++ b/.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