From fdac2a399db7748c75353246a616e4f4cc600e8e Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Sun, 2 Feb 2025 18:56:44 +0900 Subject: [PATCH] Update ghcr-upload.sh (#184) --- extra/ghcr-upload.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/ghcr-upload.sh b/extra/ghcr-upload.sh index 40db797..230bb7a 100755 --- a/extra/ghcr-upload.sh +++ b/extra/ghcr-upload.sh @@ -2,12 +2,11 @@ #! nix-shell -i bash -p zstd -p oras -p jq set -euox pipefail -: "${GITHUB_REPOSITORY_OWNER:?'GITHUB_REPOSITORY_OWNER is not set'}" : "${GITHUB_REPOSITORY:?'GITHUB_REPOSITORY is not set'}" : "${GITHUB_SHA:?'GITHUB_SHA is not set'}" : "${DEV_SHELL:?'DEV_SHELL is not set'}" -SHELL_NIX_PATH=$(nix path-info "github:${GITHUB_REPOSITORY_OWNER}/${GITHUB_REPOSITORY}/${GITHUB_SHA}#hydraJobs.${DEV_SHELL}" --accept-flake-config --no-update-lock-file --json | jq -r 'keys[0]') +SHELL_NIX_PATH=$(nix path-info "github:${GITHUB_REPOSITORY}/${GITHUB_SHA}#hydraJobs.${DEV_SHELL}" --accept-flake-config --no-update-lock-file --json | jq -r 'keys[0]') nix-store -r "$SHELL_NIX_PATH" #nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config nix-store --export $(nix-store -qR "$SHELL_NIX_PATH") | tee store-paths.txt | zstd -z8T8 >${DEV_SHELL}