From 7bdc70632c7385ab53c02b5018093880a86723c6 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 10 Oct 2024 01:04:16 +0200 Subject: [PATCH] chore(scripts): Cleanup of old caching script --- scripts/default.nix | 1 - scripts/push-to-nix-cache.sh | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100755 scripts/push-to-nix-cache.sh diff --git a/scripts/default.nix b/scripts/default.nix index d5096fd..3503729 100644 --- a/scripts/default.nix +++ b/scripts/default.nix @@ -33,7 +33,6 @@ let "check-deployment" "launch-vm" "list-nodes" - "push-to-nix-cache" ]; in diff --git a/scripts/push-to-nix-cache.sh b/scripts/push-to-nix-cache.sh deleted file mode 100755 index f537d4d..0000000 --- a/scripts/push-to-nix-cache.sh +++ /dev/null @@ -1,20 +0,0 @@ -set -e -set -u -set -o pipefail - -ENDPOINT=${STORE_ENDPOINT:-https://tvix-cache.dgnum.eu/infra-singing/} - -cat > .netrc << EOF -default -login $STORE_USER -password $STORE_PASSWORD -EOF - -@colmena@/bin/colmena eval -E "{ nodes, lib, ... }: builtins.map (v: nodes.\${v}.config.system.build.toplevel.drvPath) ${NODES:-(builtins.attrNames nodes)}" |\ -@jq@/bin/jq -r '.[]' |\ -xargs nix-store -q -R --include-outputs |\ -sed '/\.drv$/d' |\ -tee uploaded.txt |\ -xargs nix copy --to "$ENDPOINT?compression=none" --extra-experimental-features nix-command --netrc-file ./.netrc - -rm .netrc