We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7013a82 commit ecf335aCopy full SHA for ecf335a
1 file changed
hack/release.sh
@@ -42,6 +42,8 @@ OFFICIAL_RELEASE=${OFFICIAL_RELEASE:-false}
42
# LOCAL_RELEASE indicates that containerd has been built and released
43
# locally.
44
LOCAL_RELEASE=${LOCAL_RELEASE:-false}
45
+GOOS=$(go env GOOS)
46
+GOARCH=$(go env GOARCH)
47
48
49
destdir=${BUILD_DIR}/release-stage
@@ -66,7 +68,7 @@ download_containerd() {
66
68
67
69
# copy_local_containerd copies local containerd release.
70
copy_local_containerd() {
- local -r tarball="${GOPATH}/src/github.com/containerd/containerd/releases/containerd-${VERSION}.linux-amd64.tar.gz"
71
+ local -r tarball="${GOPATH}/src/github.com/containerd/containerd/releases/containerd-${VERSION}.${GOOS}-${GOARCH}.tar.gz"
72
if [[ ! -e "${tarball}" ]]; then
73
echo "Containerd release is not built"
74
exit 1
0 commit comments