Skip to content

Commit

Permalink
retry is the solution 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Feb 6, 2025
1 parent 434fb81 commit 09b36dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/ghcr-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -euox pipefail
: "${DEV_SHELL:?'DEV_SHELL is not set'}"
: "${SHELL_NIX_PATH:?'SHELL_NIX_PATH is not set'}"

nix-store -r "$SHELL_NIX_PATH"
# retry three times in case of intermittent network errors.
nix-store -r "$SHELL_NIX_PATH" || nix-store -r "$SHELL_NIX_PATH" || 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
Expand Down

0 comments on commit 09b36dc

Please sign in to comment.