Skip to content

Commit 09b36dc

Browse files
committed
retry is the solution 🤦
1 parent 434fb81 commit 09b36dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extra/ghcr-upload.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -euox pipefail
55
: "${DEV_SHELL:?'DEV_SHELL is not set'}"
66
: "${SHELL_NIX_PATH:?'SHELL_NIX_PATH is not set'}"
77

8-
nix-store -r "$SHELL_NIX_PATH"
8+
# retry three times in case of intermittent network errors.
9+
nix-store -r "$SHELL_NIX_PATH" || nix-store -r "$SHELL_NIX_PATH" || nix-store -r "$SHELL_NIX_PATH"
910
#nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config
1011
nix-store --export $(nix-store -qR "$SHELL_NIX_PATH") | tee store-paths.txt | zstd -z8T8 >${DEV_SHELL}
1112
if [[ ! $(tail -n 1 store-paths.txt) =~ "devx" ]]; then exit 1; fi

0 commit comments

Comments
 (0)