From 1f16637b8434c91b382c1415ba51cd5571ffc1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 10 Jun 2021 09:02:41 +0200 Subject: [PATCH] put arch in upload asset names --- build-images.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build-images.sh b/build-images.sh index 804994f..4775ba1 100755 --- a/build-images.sh +++ b/build-images.sh @@ -5,9 +5,12 @@ set -xeuo pipefail build_netboot_image() { tag=$1 arch=$2 + tmp=$3 img=$(nix-build --no-out-link -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" '' -A "netboot.$arch") - echo $(readlink "$img/bzImage") - echo $(readlink "$img/initrd") + cp "$(readlink $img/bzImage)" "$tmp/bzImage-$arch" + echo "$tmp/bzImage-$arch" + cp "$(readlink $img/initrd)" "$tmp/initrd-$arch" + echo "$tmp/initrd-$arch" } main() { @@ -16,7 +19,7 @@ main() { sha256s=() tmp="$(mktemp -d)" trap 'rm -rf -- "$tmp"' EXIT - assets=($(build_netboot_image "$tag" "$arch")) + assets=($(build_netboot_image "$tag" "$arch" "$tmp")) for asset in "${assets[@]}"; do pushd "$(dirname $asset)"