gitlab-ci: add last-built-system to gcroots

This commit is contained in:
Luke Granger-Brown 2020-11-06 05:13:12 +00:00
parent d6f36cf247
commit 503ea81054

View file

@ -12,6 +12,8 @@ nixCache:
script:
- "nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh"
- "nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
- "rm /nix/var/nix/gcroots/per-user/$USER/last-built-systems || true"
- "cp ./result /nix/var/nix/gcroots/per-user/$USER/last-built-systems"
- "nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
tags:
- cacher