Skip to content

Commit

Permalink
Update ghcr-upload.sh (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman authored Feb 2, 2025
1 parent 945935a commit fdac2a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extra/ghcr-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit fdac2a3

Please sign in to comment.