Test build without cachix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a660ff8d60
commit
f8fed740c5
15
.drone.yml
15
.drone.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue