Skip to content

Commit 0fa3cfd

Browse files
authored
Merge pull request #1440 from jr-santos98/master
Containerd-Cri with supports multi-architectures
2 parents 8fb244a + c69a2dc commit 0fa3cfd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

hack/release.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ OFFICIAL_RELEASE=${OFFICIAL_RELEASE:-false}
4242
# LOCAL_RELEASE indicates that containerd has been built and released
4343
# locally.
4444
LOCAL_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

4755
destdir=${BUILD_DIR}/release-stage
@@ -66,7 +74,7 @@ download_containerd() {
6674

6775
# copy_local_containerd copies local containerd release.
6876
copy_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

0 commit comments

Comments
 (0)