try sharing nix store between builds

This commit is contained in:
Cyryl Płotnicki 2022-12-04 13:04:08 +00:00
parent 6a8b1eae71
commit fcd0adc6ad
2 changed files with 4 additions and 0 deletions

View file

@ -9,3 +9,5 @@ pipeline:
- nix --no-sandbox develop --eval-store ./nix-store -c git lfs fetch --all - nix --no-sandbox develop --eval-store ./nix-store -c git lfs fetch --all
- nix --no-sandbox develop --eval-store ./nix-store -c git push github --all --force - nix --no-sandbox develop --eval-store ./nix-store -c git push github --all --force
secrets: [ github_token ] secrets: [ github_token ]
volumes:
- /var/lib/woodpecker/nix-store/:/nix/store

View file

@ -8,3 +8,5 @@ pipeline:
- nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos - nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos
- nix --no-sandbox flake check --eval-store ./nix-store - nix --no-sandbox flake check --eval-store ./nix-store
volumes:
- /var/lib/woodpecker/nix-store/:/nix/store