Test build without cachix
continuous-integration/drone/push Build is passing Details

pull/1/head
mat ess 2022-10-19 21:36:41 -04:00
parent a660ff8d60
commit f8fed740c5
1 changed files with 1 additions and 14 deletions

View File

@ -4,7 +4,6 @@ name: default
environment: environment:
NIX: nix --extra-experimental-features nix-command --extra-experimental-features flakes NIX: nix --extra-experimental-features nix-command --extra-experimental-features flakes
CACHE_NAME: mat
steps: steps:
- name: nix build - name: nix build
@ -12,20 +11,8 @@ steps:
volumes: volumes:
- name: site - name: site
path: /site path: /site
environment:
CACHIX_AUTH_TOKEN:
from_secret: cachix_auth_token
commands: commands:
- nix-env --install --attr nixpkgs.cachix nixpkgs.jq - $NIX build
- cachix use $CACHE_NAME
- >
$NIX flake archive --json
| jq -r '.path,(.inputs|to_entries[].value.path)'
| cachix push $CACHE_NAME
- >
$NIX build
| jq -r '.[].outputs | to_entries[].value'
| cachix push $CACHE_NAME
- cp -r result/* /site/ - cp -r result/* /site/
- name: netlify deploy - name: netlify deploy