Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
.ci: build nydus image binary
Browse files Browse the repository at this point in the history
Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
  • Loading branch information
ChengyuZhu6 committed Sep 27, 2023
1 parent 68465da commit bbdb8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/install_nydus_snapshotter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ cidir=$(dirname "$0")
source "${cidir}/lib.sh"

target_dir="/usr/local/"

nydus_snapshotter_repo=$(get_version "externals.nydus-snapshotter.url")
nydus_snapshotter_version=$(get_version "externals.nydus-snapshotter.version")
nydus_snapshotter_repo_dir="${GOPATH}/src/github.com/containerd/nydus-snapshotter"
nydus_snapshotter_binary_target_dir="${target_dir}/bin"
nydus_snapshotter_config_target_dir="${target_dir}/share/nydus-snapshotter"

nydus_repo=${nydus_repo:-"https://github.com/dragonflyoss/image-service"}
nydus_version=${nydus_version:-"v2.2.3"}
nydus_version=${nydus_version:-"v2.3.0-alpha.0"}

arch="$(uname -m)"

Expand Down Expand Up @@ -65,6 +64,7 @@ download_nydus_from_tarball() {
echo "Skip to download nydus for ${arch}, it doesn't work for ${arch} now."
return
fi

local goarch="$(${cidir}/kata-arch.sh --golang)"
local tarball_url="${nydus_repo}/releases/download/${nydus_version}/nydus-static-${nydus_version}-linux-${goarch}.tgz"
echo "Download tarball from ${tarball_url}"
Expand Down

0 comments on commit bbdb8cc

Please sign in to comment.