factor out nix command flags into NIX_FLAGS env var
for better readability
This commit is contained in:
parent
67d48485d0
commit
d33aef6060
16
.drone.yml
16
.drone.yml
|
@ -102,11 +102,13 @@ steps:
|
|||
event:
|
||||
- pull_request
|
||||
- tag
|
||||
environment:
|
||||
NIX_FLAGS: "--print-build-logs --verbose --store /tmp/build-store --eval-store local"
|
||||
commands:
|
||||
- nix -Lv --store --eval-store local /tmp/build-store flake check
|
||||
- nix -Lv --store --eval-store local /tmp/build-store build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
|
||||
- nix -Lv --store --eval-store local /tmp/build-store develop -c echo OK
|
||||
- nix -Lv --store --eval-store local /tmp/build-store develop --command bud --help
|
||||
- nix $$NIX_FLAGS flake check
|
||||
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
|
||||
- nix $$NIX_FLAGS develop -c echo OK
|
||||
- nix $$NIX_FLAGS develop --command bud --help
|
||||
|
||||
volumes:
|
||||
- name: nix-store-cache
|
||||
|
@ -126,8 +128,10 @@ steps:
|
|||
path: /var/nix/iso-cache
|
||||
- name: nix-store-cache
|
||||
path: /tmp/build-store
|
||||
environment:
|
||||
NIX_FLAGS: "--print-build-logs --verbose --store /tmp/build-store --eval-store local"
|
||||
commands:
|
||||
- nix -Lv --store --eval-store local /tmp/build-store develop --command bud build bootstrap bootstrapIso
|
||||
- nix $$NIX_FLAGS develop --command bud build bootstrap bootstrapIso
|
||||
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
|
||||
|
||||
- name: "Publish ISO"
|
||||
|
@ -165,6 +169,6 @@ volumes:
|
|||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 3d4da439d9dc5cd81ea31f1c137ca82d6196341278434770348f5e258256cbec
|
||||
hmac: 7816fae517d6d949f53aaafc80ba9847c788856d89749ec40418331db2b4b2b6
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue