factor out nix command flags into NIX_FLAGS env var

for better readability
This commit is contained in:
teutat3s 2022-02-03 12:01:39 +01:00
parent 67d48485d0
commit d33aef6060
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -102,11 +102,13 @@ steps:
event: event:
- pull_request - pull_request
- tag - tag
environment:
NIX_FLAGS: "--print-build-logs --verbose --store /tmp/build-store --eval-store local"
commands: commands:
- nix -Lv --store --eval-store local /tmp/build-store flake check - nix $$NIX_FLAGS flake check
- nix -Lv --store --eval-store local /tmp/build-store build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel" - nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
- nix -Lv --store --eval-store local /tmp/build-store develop -c echo OK - nix $$NIX_FLAGS develop -c echo OK
- nix -Lv --store --eval-store local /tmp/build-store develop --command bud --help - nix $$NIX_FLAGS develop --command bud --help
volumes: volumes:
- name: nix-store-cache - name: nix-store-cache
@ -126,8 +128,10 @@ steps:
path: /var/nix/iso-cache path: /var/nix/iso-cache
- name: nix-store-cache - name: nix-store-cache
path: /tmp/build-store path: /tmp/build-store
environment:
NIX_FLAGS: "--print-build-logs --verbose --store /tmp/build-store --eval-store local"
commands: 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/ - cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
- name: "Publish ISO" - name: "Publish ISO"
@ -165,6 +169,6 @@ volumes:
--- ---
kind: signature kind: signature
hmac: 3d4da439d9dc5cd81ea31f1c137ca82d6196341278434770348f5e258256cbec hmac: 7816fae517d6d949f53aaafc80ba9847c788856d89749ec40418331db2b4b2b6
... ...