From f9cb7b9e5015918b1ce04f3b19700119c89349b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 8 Nov 2022 21:03:42 +0000 Subject: [PATCH] try caching localdirectory --- .woodpecker.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0f517169..1c3be2ae 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,9 +1,11 @@ pipeline: - restore-cache: + restore-cache: image: drillster/drone-volume-cache - restore: true - mount: - - /nix/store + pull: true + settings: + restore: true + mount: + - ./nix-store volumes: - /var/lib/woodpecker/cache:/cache @@ -12,12 +14,14 @@ pipeline: pull: true commands: - nix --no-sandbox flake info - - nix --no-sandbox develop -c statix check + - nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos - rebuild-cache: + save-cache: image: drillster/drone-volume-cache - rebuild: true - mount: - - /nix/store + pull: true + settings: + rebuild: true + mount: + - ./nix-store volumes: - /var/lib/woodpecker/cache:/cache