Merge pull request #1440 from jr-santos98/master
Containerd-Cri with supports multi-architectures
This commit is contained in:
commit
0fa3cfd695
@ -42,6 +42,14 @@ OFFICIAL_RELEASE=${OFFICIAL_RELEASE:-false}
|
||||
# LOCAL_RELEASE indicates that containerd has been built and released
|
||||
# locally.
|
||||
LOCAL_RELEASE=${LOCAL_RELEASE:-false}
|
||||
if [ -z "${GOOS:-}" ]
|
||||
then
|
||||
GOOS=$(go env GOOS)
|
||||
fi
|
||||
if [ -z "${GOARCH:-}" ]
|
||||
then
|
||||
GOARCH=$(go env GOARCH)
|
||||
fi
|
||||
|
||||
|
||||
destdir=${BUILD_DIR}/release-stage
|
||||
@ -66,7 +74,7 @@ download_containerd() {
|
||||
|
||||
# copy_local_containerd copies local containerd release.
|
||||
copy_local_containerd() {
|
||||
local -r tarball="${GOPATH}/src/github.com/containerd/containerd/releases/containerd-${VERSION}.linux-amd64.tar.gz"
|
||||
local -r tarball="${GOPATH}/src/github.com/containerd/containerd/releases/containerd-${VERSION}.${GOOS}-${GOARCH}.tar.gz"
|
||||
if [[ ! -e "${tarball}" ]]; then
|
||||
echo "Containerd release is not built"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user