use SUBCMD_FLAGS env var

This commit is contained in:
teutat3s 2022-02-03 12:22:07 +01:00
parent c7a0811200
commit ec8c0dae45
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -104,12 +104,14 @@ steps:
- tag - tag
environment: environment:
NIX_FLAGS: "--store /tmp/build-store --print-build-logs --verbose" NIX_FLAGS: "--store /tmp/build-store --print-build-logs --verbose"
SUBCMD_FLAGS: "--eval-store local"
commands: commands:
- 'echo NIX_FLAGS: $$NIX_FLAGS' - 'echo NIX_FLAGS: $NIX_FLAGS'
- nix $$NIX_FLAGS flake --eval-store local check - 'echo SUBCMD_FLAGS: $SUBCMD_FLAGS'
- nix $$NIX_FLAGS build --eval-store local ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel" - nix $$NIX_FLAGS flake check $$SUBCMD_FLAGS
- nix $$NIX_FLAGS develop --eval-store local --command echo OK - nix $$NIX_FLAGS build $$SUBCMD_FLAGS ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
- nix $$NIX_FLAGS develop --eval-store local --command bud --help - nix $$NIX_FLAGS develop $$SUBCMD_FLAGS --command echo OK
- nix $$NIX_FLAGS develop $$SUBCMD_FLAGS --command bud --help
volumes: volumes:
- name: nix-store-cache - name: nix-store-cache
@ -171,6 +173,6 @@ volumes:
--- ---
kind: signature kind: signature
hmac: a1412a5be78c44f176af32d63f2716c95c0d3992f4809b192166dfa7dd7e3c28 hmac: ad51a3555d52db391d510571e2e26435b8b105145d18034a453ab653fd9e7bd3
... ...