add cache plugin

This commit is contained in:
Cyryl Płotnicki 2022-11-08 19:41:48 +00:00
parent bf34591da3
commit 4a72ff40a0
2 changed files with 10 additions and 3 deletions

View file

@ -1,10 +1,17 @@
pipeline:
restore-cache:
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- /nix/store
volumes:
- /var/lib/woodpecker/cache/nixstore:/cache
check:
image: nixpkgs/nix-flakes:latest
pull: true
commands:
- nix --no-sandbox flake info
- nix --no-sandbox develop -c statix check
volumes:
- /var/lib/woodpecker/cache/nixstore:/nix/store

View file

@ -3,7 +3,7 @@ let
httpPort = 8000;
agentPort = 9000;
domain = "ci.cyplo.dev";
path = "/var/lib/woodpecker";
path = "/var/lib/woodpecker/data";
serverContainerName = "woodpecker-server";
in {