File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ OFFICIAL_RELEASE=${OFFICIAL_RELEASE:-false}
4242# LOCAL_RELEASE indicates that containerd has been built and released
4343# locally.
4444LOCAL_RELEASE=${LOCAL_RELEASE:- false}
45+ if [ -z " ${GOOS:- } " ]
46+ then
47+ GOOS=$( go env GOOS)
48+ fi
49+ if [ -z " ${GOARCH:- } " ]
50+ then
51+ GOARCH=$( go env GOARCH)
52+ fi
4553
4654
4755destdir=${BUILD_DIR} /release-stage
@@ -66,7 +74,7 @@ download_containerd() {
6674
6775# copy_local_containerd copies local containerd release.
6876copy_local_containerd () {
69- local -r tarball=" ${GOPATH} /src/github.com/containerd/containerd/releases/containerd-${VERSION} .linux-amd64 .tar.gz"
77+ local -r tarball=" ${GOPATH} /src/github.com/containerd/containerd/releases/containerd-${VERSION} .${GOOS} - ${GOARCH} .tar.gz"
7078 if [[ ! -e " ${tarball} " ]]; then
7179 echo " Containerd release is not built"
7280 exit 1
You can’t perform that action at this time.
0 commit comments