[feature] use buildx to produce multi arch image kubesphere#3683

Signed-off-by: lxm <lxm.xupt@gmail.com>
This commit is contained in:
lxm
2021-04-10 00:06:07 +08:00
parent 6a58572167
commit af536c0c96
11 changed files with 242 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
ARCH=`uname -m`
if [ "$ARCH" == "x86_64" ]; then
echo "x86_64"
wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
tar xvf helm-${HELM_VERSION}-linux-amd64.tar.gz && \
rm helm-${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/bin/ && \
rm -rf linux-amd64
elif [ "$ARCH" == "aarch64" ]; then
echo "arm arch"
wget https://get.helm.sh/helm-${HELM_VERSION}-linux-arm64.tar.gz && \
tar xvf helm-${HELM_VERSION}-linux-arm64.tar.gz && \
rm helm-${HELM_VERSION}-linux-arm64.tar.gz && \
mv linux-arm64/helm /usr/bin/ && \
rm -rf linux-arm64
fi