From 25f38525cc8077b739f14a670c9959875396921e Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 28 Apr 2019 15:44:16 +0200 Subject: [PATCH] Updated cache volumes Signed-off-by: Jim Martens --- .drone.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3b2c519..667d1a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,18 +8,17 @@ steps: settings: restore: true mount: - - /drone/.bundle + - ./.bundle - ./.yarn-cache - ./node_modules volumes: - - name: jekyll-blog-cache - path: /tmp/cache + - name: cache + path: /cache - name: build image: starefossen/ruby-node - privileged: true environment: - BUNDLE_PATH: /drone/.bundle - commands: + BUNDLE_PATH: .bundle + commands: - export LANG="C.UTF-8" - export LC_ALL="C.UTF-8" - ruby -e 'puts STDIN.external_encoding' # figure out the encoding used @@ -28,21 +27,18 @@ steps: - yarn global add gulp-cli - yarn install --pure-lockfile - gulp build - volumes: - - name: jekyll-blog-cache - path: /tmp/cache - name: rebuild-cache privileged: true image: drillster/drone-volume-cache settings: rebuild: true mount: - - /drone/.bundle - - ./.yarn-cache + - .bundle + - .yarn-cache - ./node_modules volumes: - - name: jekyll-blog-cache - path: /tmp/cache + - name: cache + path: /cache - name: deploy image: drillster/drone-rsync environment: @@ -80,9 +76,9 @@ steps: status: [ failure ] volumes: - - name: jekyll-blog-cache + - name: cache host: - path: /var/lib/drone + path: /var/lib/drone/cache trigger: