copy
This commit is contained in:
@@ -315,7 +315,7 @@
|
|||||||
|
|
||||||
# Copy to the binary cache
|
# Copy to the binary cache
|
||||||
echo "Copying $system to binary cache..."
|
echo "Copying $system to binary cache..."
|
||||||
nix copy --to "http://localhost:5000?secret-key=/etc/nix/cache-priv-key.pem" ".#nixosConfigurations.$system.config.system.build.toplevel"
|
nix copy --to "https://cache.mjallen.dev?secret-key=/etc/nix/cache-priv-key.pem" ".#nixosConfigurations.$system.config.system.build.toplevel"
|
||||||
success+=("$system")
|
success+=("$system")
|
||||||
else
|
else
|
||||||
echo "❌ Failed to build $system"
|
echo "❌ Failed to build $system"
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
echo "Cross-building $system (aarch64-linux)..."
|
echo "Cross-building $system (aarch64-linux)..."
|
||||||
if nix build ".#nixosConfigurations.$system.config.system.build.toplevel" --system aarch64-linux --out-link "./result-$system" --no-link; then
|
if nix build ".#nixosConfigurations.$system.config.system.build.toplevel" --system aarch64-linux --out-link "./result-$system" --no-link; then
|
||||||
echo "✅ Successfully built $system"
|
echo "✅ Successfully built $system"
|
||||||
nix copy --to "http://localhost:5000?secret-key=/etc/nix/cache-priv-key.pem" ".#nixosConfigurations.$system.config.system.build.toplevel"
|
nix copy --to "https://cache.mjallen.dev?secret-key=/etc/nix/cache-priv-key.pem" ".#nixosConfigurations.$system.config.system.build.toplevel"
|
||||||
success+=("$system")
|
success+=("$system")
|
||||||
else
|
else
|
||||||
echo "❌ Failed to build $system"
|
echo "❌ Failed to build $system"
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
echo "Found Darwin system $system, attempting to build packages..."
|
echo "Found Darwin system $system, attempting to build packages..."
|
||||||
if nix build ".#darwinConfigurations.$system.system" --out-link "./result-darwin-$system" --no-link; then
|
if nix build ".#darwinConfigurations.$system.system" --out-link "./result-darwin-$system" --no-link; then
|
||||||
echo "✅ Successfully built $system packages"
|
echo "✅ Successfully built $system packages"
|
||||||
nix copy --to "http://localhost:5000?secret-key=/etc/nix/cache-priv-key.pem" ".#darwinConfigurations.$system.system"
|
nix copy --to "https://cache.mjallen.dev?secret-key=/etc/nix/cache-priv-key.pem" ".#darwinConfigurations.$system.system"
|
||||||
success+=("$system (darwin)")
|
success+=("$system (darwin)")
|
||||||
else
|
else
|
||||||
echo "❌ Failed to build $system packages"
|
echo "❌ Failed to build $system packages"
|
||||||
|
|||||||
Reference in New Issue
Block a user