Skip to content

Commit

Permalink
static-build: Fix arch error on nydus build
Browse files Browse the repository at this point in the history
Fix the arch error when downloading the nydus tarball.

Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
Signed-off-by: Steven Horsman <steven@uk.ibm.com>
(cherry picked from commit f6df3d6)
  • Loading branch information
ChengyuZhu6 authored and fidencio committed Sep 21, 2023
1 parent 65e5bfe commit ae55c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/packaging/static-build/nydus/build.sh
Expand Up @@ -12,7 +12,7 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

source "${script_dir}/../../scripts/lib.sh"

ARCH=${ARCH:-$(arch_to_golang "$(uname -m)")}
arch="$(uname -m)"

nydus_url="${nydus_url:-}"
nydus_version="${nydus_version:-}"
Expand All @@ -25,7 +25,7 @@ info "Get nydus information from runtime versions.yaml"

nydus_tarball_url="${nydus_url}/releases/download"

file_name="nydus-static-${nydus_version}-linux-${ARCH}.tgz"
file_name="nydus-static-${nydus_version}-linux-$(arch_to_golang $arch).tgz"
download_url="${nydus_tarball_url}/${nydus_version}/${file_name}"

info "Download nydus version: ${nydus_version} from ${download_url}"
Expand Down

0 comments on commit ae55c0b

Please sign in to comment.