Skip to content

Commit fdac2a3

Browse files
authored
Update ghcr-upload.sh (#184)
1 parent 945935a commit fdac2a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extra/ghcr-upload.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
#! nix-shell -i bash -p zstd -p oras -p jq
33
set -euox pipefail
44

5-
: "${GITHUB_REPOSITORY_OWNER:?'GITHUB_REPOSITORY_OWNER is not set'}"
65
: "${GITHUB_REPOSITORY:?'GITHUB_REPOSITORY is not set'}"
76
: "${GITHUB_SHA:?'GITHUB_SHA is not set'}"
87
: "${DEV_SHELL:?'DEV_SHELL is not set'}"
98

10-
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]')
9+
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]')
1110
nix-store -r "$SHELL_NIX_PATH"
1211
#nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config
1312
nix-store --export $(nix-store -qR "$SHELL_NIX_PATH") | tee store-paths.txt | zstd -z8T8 >${DEV_SHELL}

0 commit comments

Comments
 (0)