put arch in upload asset names
This commit is contained in:
parent
8d1dc82073
commit
1f16637b84
1 changed files with 6 additions and 3 deletions
|
@ -5,9 +5,12 @@ set -xeuo pipefail
|
||||||
build_netboot_image() {
|
build_netboot_image() {
|
||||||
tag=$1
|
tag=$1
|
||||||
arch=$2
|
arch=$2
|
||||||
|
tmp=$3
|
||||||
img=$(nix-build --no-out-link -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" '<nixpkgs/nixos/release.nix>' -A "netboot.$arch")
|
img=$(nix-build --no-out-link -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" '<nixpkgs/nixos/release.nix>' -A "netboot.$arch")
|
||||||
echo $(readlink "$img/bzImage")
|
cp "$(readlink $img/bzImage)" "$tmp/bzImage-$arch"
|
||||||
echo $(readlink "$img/initrd")
|
echo "$tmp/bzImage-$arch"
|
||||||
|
cp "$(readlink $img/initrd)" "$tmp/initrd-$arch"
|
||||||
|
echo "$tmp/initrd-$arch"
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
@ -16,7 +19,7 @@ main() {
|
||||||
sha256s=()
|
sha256s=()
|
||||||
tmp="$(mktemp -d)"
|
tmp="$(mktemp -d)"
|
||||||
trap 'rm -rf -- "$tmp"' EXIT
|
trap 'rm -rf -- "$tmp"' EXIT
|
||||||
assets=($(build_netboot_image "$tag" "$arch"))
|
assets=($(build_netboot_image "$tag" "$arch" "$tmp"))
|
||||||
|
|
||||||
for asset in "${assets[@]}"; do
|
for asset in "${assets[@]}"; do
|
||||||
pushd "$(dirname $asset)"
|
pushd "$(dirname $asset)"
|
||||||
|
|
Loading…
Reference in a new issue