nix/gitlab-ci: --indirect and --add-root

This commit is contained in:
Luke Granger-Brown 2023-03-12 15:04:15 +00:00
parent d9971b39c5
commit c70a1338b9

View file

@ -38,7 +38,7 @@ let
image = "nixos/nix:latest"; image = "nixos/nix:latest";
needs = [{ job = "nixCache-linux-eval"; artifacts = true; }]; needs = [{ job = "nixCache-linux-eval"; artifacts = true; }];
script = [ script = [
"nix-store --realise $(cat drv-name) --option substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\"" "nix-store --realise $(cat drv-name) --option substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\" --indirect --add-root ./result"
"readlink -f ./result" "readlink -f ./result"
"nix run -f ./ go.nix.bcacheup -c bcacheup --cache_url vaultgs://lukegb-nix-cache --vault_addr unix:///run/tokend/sock --vault_token_source gcp/roleset/binary-cache-deployer/token ./result" "nix run -f ./ go.nix.bcacheup -c bcacheup --cache_url vaultgs://lukegb-nix-cache --vault_addr unix:///run/tokend/sock --vault_token_source gcp/roleset/binary-cache-deployer/token ./result"
"cat ./result/combined-systems > systems.json" "cat ./result/combined-systems > systems.json"