diff --git a/extra/ghcr-upload.sh b/extra/ghcr-upload.sh index 7ca41f8..b8ddbdb 100755 --- a/extra/ghcr-upload.sh +++ b/extra/ghcr-upload.sh @@ -1,8 +1,10 @@ #! /usr/bin/env nix-shell -#! nix-shell -i bash -p zstd -p oras +#! nix-shell -i bash -p zstd -p oras -p jq set -euox pipefail -nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config -nix-store --export $(nix-store -qR result) | tee store-paths.txt | zstd -z8T8 >${DEV_SHELL} +SHELL_NIX_PATH=$(nix path-info ".#hydraJobs.${DEV_SHELL}" --accept-flake-config --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} if [[ ! $(tail -n 1 store-paths.txt) =~ "devx" ]]; then exit 1; fi oras push ghcr.io/input-output-hk/devx:${DEV_SHELL} ${DEV_SHELL}