Skip to content

Commit

Permalink
Check while caling ghcr-upload.sh that closure contains devx shel…
Browse files Browse the repository at this point in the history
…l rc derivation

The motivation is to detect the faulty closures by failing in CI, rather than silently uploading them to ghcr.io
  • Loading branch information
yvan-sraka committed Aug 4, 2023
1 parent bc55fdb commit d36fee4
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 @@ -3,5 +3,6 @@
set -euox pipefail

nix build ".#hydraJobs.${DEV_SHELL}" --show-trace
nix-store --export $(nix-store -qR result) | zstd -z8T8 >${DEV_SHELL}
nix-store --export $(nix-store -qR result) | zstd -z8T8 >${DEV_SHELL} | tee store-paths.txt
if [[ ! $(tail -n 1 store-paths.txt) =~ "devx" ]]; then exit 1; fi
oras push ghcr.io/input-output-hk/devx:${DEV_SHELL} ${DEV_SHELL}

0 comments on commit d36fee4

Please sign in to comment.