mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
reorder attic token check
This commit is contained in:
parent
7fc39b1845
commit
47c210d5de
1 changed files with 8 additions and 8 deletions
|
|
@ -10,14 +10,6 @@ just() {
|
||||||
nix build "$@"
|
nix build "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${ATTIC_TOKEN+x} ]; then
|
|
||||||
echo "\$ATTIC_TOKEN is unset, skipping uploading to the binary cache"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
nix run --inputs-from . attic#default -- \
|
|
||||||
login "$ATTIC_SERVER" "$ATTIC_ENDPOINT" "$ATTIC_TOKEN"
|
|
||||||
|
|
||||||
# Find all output paths of the installables and their build dependencies
|
# Find all output paths of the installables and their build dependencies
|
||||||
readarray -t derivations < <(nix path-info --derivation "$@")
|
readarray -t derivations < <(nix path-info --derivation "$@")
|
||||||
readarray -t cache < <(
|
readarray -t cache < <(
|
||||||
|
|
@ -26,6 +18,14 @@ just() {
|
||||||
<<< "${derivations[*]}"
|
<<< "${derivations[*]}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [ -z ${ATTIC_TOKEN+x} ]; then
|
||||||
|
echo "\$ATTIC_TOKEN is unset, skipping uploading to the binary cache"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
nix run --inputs-from . attic#default -- \
|
||||||
|
login "$ATTIC_SERVER" "$ATTIC_ENDPOINT" "$ATTIC_TOKEN"
|
||||||
|
|
||||||
# Upload them to Attic. It seems to insist on newlines to separate the
|
# Upload them to Attic. It seems to insist on newlines to separate the
|
||||||
# paths.
|
# paths.
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue