File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env nix-shell
2- #! nix-shell -i bash -p zstd -p oras
2+ #! nix-shell -i bash -p zstd -p oras -p jq
33set -euox pipefail
44
5- nix build " .#hydraJobs.${DEV_SHELL} " --show-trace --accept-flake-config
6- nix-store --export $( nix-store -qR result) | tee store-paths.txt | zstd -z8T8 > ${DEV_SHELL}
5+ SHELL_NIX_PATH=$( nix path-info " .#hydraJobs.${DEV_SHELL} " --accept-flake-config --json | jq -r ' keys[0]' )
6+ nix-store -r " $SHELL_NIX_PATH "
7+ # nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config
8+ nix-store --export $( nix-store -qR " $SHELL_NIX_PATH " ) | tee store-paths.txt | zstd -z8T8 > ${DEV_SHELL}
79if [[ ! $( tail -n 1 store-paths.txt) =~ " devx" ]]; then exit 1; fi
810oras push ghcr.io/input-output-hk/devx:${DEV_SHELL} ${DEV_SHELL}
You can’t perform that action at this time.
0 commit comments