Skip to content

Commit ecf335a

Browse files
committed
added multi-architectures support
Signed-off-by: Junior Santos <[email protected]>
1 parent 7013a82 commit ecf335a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hack/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ 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+
GOOS=$(go env GOOS)
46+
GOARCH=$(go env GOARCH)
4547

4648

4749
destdir=${BUILD_DIR}/release-stage
@@ -66,7 +68,7 @@ download_containerd() {
6668

6769
# copy_local_containerd copies local containerd release.
6870
copy_local_containerd() {
69-
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"
7072
if [[ ! -e "${tarball}" ]]; then
7173
echo "Containerd release is not built"
7274
exit 1

0 commit comments

Comments
 (0)