try caching localdirectory

This commit is contained in:
Cyryl Płotnicki 2022-11-08 21:03:42 +00:00
parent 9e34135dc1
commit f9cb7b9e50

View file

@ -1,9 +1,11 @@
pipeline:
restore-cache:
image: drillster/drone-volume-cache
pull: true
settings:
restore: true
mount:
- /nix/store
- ./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
pull: true
settings:
rebuild: true
mount:
- /nix/store
- ./nix-store
volumes:
- /var/lib/woodpecker/cache:/cache