chore(scripts): Cleanup of old caching script
All checks were successful
build configuration / build_and_cache_geo01 (push) Successful in 1m13s
build configuration / build_and_cache_geo02 (push) Successful in 1m17s
build configuration / build_and_cache_rescue01 (push) Successful in 1m26s
build configuration / build_and_cache_storage01 (push) Successful in 1m29s
build configuration / build_and_cache_compute01 (push) Successful in 1m37s
lint / check (push) Successful in 24s
build configuration / build_and_cache_krz01 (push) Successful in 2m13s
build configuration / build_and_cache_vault01 (push) Successful in 1m17s
build configuration / build_and_cache_bridge01 (push) Successful in 1m3s
build configuration / build_and_cache_web02 (push) Successful in 1m11s
build configuration / build_and_cache_web01 (push) Successful in 1m41s

This commit is contained in:
Tom Hubrecht 2024-10-10 01:04:16 +02:00
parent d05c003fd6
commit 7bdc70632c
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
2 changed files with 0 additions and 21 deletions

View file

@ -33,7 +33,6 @@ let
"check-deployment" "check-deployment"
"launch-vm" "launch-vm"
"list-nodes" "list-nodes"
"push-to-nix-cache"
]; ];
in in

View file

@ -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