[feature] use buildx to produce multi arch image kubesphere#3683
Signed-off-by: lxm <lxm.xupt@gmail.com>
This commit is contained in:
13
hack/build-scripts/get-etcd.sh
Normal file
13
hack/build-scripts/get-etcd.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
ARCH=`uname -m`
|
||||
if [ "$ARCH" == "x86_64" ]; then
|
||||
echo "x86_64"
|
||||
wget https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz
|
||||
tar xvf etcd-${ETCD_VERSION}-linux-amd64.tar.gz && \
|
||||
mv etcd-${ETCD_VERSION}-linux-amd64/etcd /usr/local/bin/etcd
|
||||
elif [ "$ARCH" == "aarch64" ]; then
|
||||
echo "arm arch"
|
||||
wget https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-arm64.tar.gz
|
||||
tar xvf etcd-${ETCD_VERSION}-linux-arm64.tar.gz && \
|
||||
mv etcd-${ETCD_VERSION}-linux-arm64/etcd /usr/local/bin/etcd
|
||||
fi
|
||||
Reference in New Issue
Block a user