test if nix available before uploading
This commit is contained in:
@@ -22,8 +22,6 @@ jobs:
|
||||
mkdir -p /etc/nix
|
||||
cp ./scripts/upload-to-cache.sh /etc/nix/
|
||||
chmod +x /etc/nix/upload-to-cache.sh
|
||||
cat /var/secrets/cache_privkey
|
||||
echo "$CACHE_PRIVKEY"
|
||||
- uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
extra_nix_config: |
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
set -eu
|
||||
set -f
|
||||
|
||||
if ! nix; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
export IFS=' '
|
||||
echo "Uploading paths" $OUT_PATHS
|
||||
exec nix copy --to "ssh://localhost:5000" $OUT_PATHS
|
||||
|
||||
Reference in New Issue
Block a user