mirror of https://github.com/portainer/portainer
chore(build): allow darwin binaries download [EE-2070] (#6120)
parent
d091b343b9
commit
0928d1832d
|
@ -10,6 +10,10 @@ if [ "${PLATFORM}" == 'linux' ]; then
|
||||||
wget -qO- "https://get.helm.sh/${HELM_DIST}.tar.gz" | tar -x -z --strip-components 1 "${PLATFORM}-${ARCH}/helm"
|
wget -qO- "https://get.helm.sh/${HELM_DIST}.tar.gz" | tar -x -z --strip-components 1 "${PLATFORM}-${ARCH}/helm"
|
||||||
mv "helm" "dist/helm"
|
mv "helm" "dist/helm"
|
||||||
chmod +x "dist/helm"
|
chmod +x "dist/helm"
|
||||||
|
elif [ "${PLATFORM}" == 'darwin' ]; then
|
||||||
|
wget -qO- "https://get.helm.sh/helm-canary-darwin-amd64.tar.gz" | tar -x -z --strip-components 1 "darwin-amd64/helm"
|
||||||
|
mv "helm" "dist/helm"
|
||||||
|
chmod +x "dist/helm"
|
||||||
elif [ "${PLATFORM}" == 'windows' ]; then
|
elif [ "${PLATFORM}" == 'windows' ]; then
|
||||||
wget -q -O tmp.zip "https://get.helm.sh/${HELM_DIST}.zip" && unzip -o -j tmp.zip "${PLATFORM}-${ARCH}/helm.exe" -d dist && rm -f tmp.zip
|
wget -q -O tmp.zip "https://get.helm.sh/${HELM_DIST}.zip" && unzip -o -j tmp.zip "${PLATFORM}-${ARCH}/helm.exe" -d dist && rm -f tmp.zip
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,12 +4,12 @@ PLATFORM=$1
|
||||||
ARCH=$2
|
ARCH=$2
|
||||||
KOMPOSE_VERSION=$3
|
KOMPOSE_VERSION=$3
|
||||||
|
|
||||||
if [ "${PLATFORM}" == 'linux' ]; then
|
if [ "${PLATFORM}" == 'windows' ]; then
|
||||||
wget -O "dist/kompose" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-${PLATFORM}-${ARCH}"
|
|
||||||
chmod +x "dist/kompose"
|
|
||||||
elif [ "${PLATFORM}" == 'windows' ]; then
|
|
||||||
wget -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-windows-amd64.exe"
|
wget -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-windows-amd64.exe"
|
||||||
chmod +x "dist/kompose.exe"
|
chmod +x "dist/kompose.exe"
|
||||||
|
else
|
||||||
|
wget -O "dist/kompose" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-${PLATFORM}-${ARCH}"
|
||||||
|
chmod +x "dist/kompose"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -4,12 +4,12 @@ PLATFORM=$1
|
||||||
ARCH=$2
|
ARCH=$2
|
||||||
KUBECTL_VERSION=$3
|
KUBECTL_VERSION=$3
|
||||||
|
|
||||||
if [ "${PLATFORM}" == 'linux' ]; then
|
if [ "${PLATFORM}" == 'windows' ]; then
|
||||||
wget -O "dist/kubectl" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/${PLATFORM}/${ARCH}/kubectl"
|
|
||||||
chmod +x "dist/kubectl"
|
|
||||||
elif [ "${PLATFORM}" == 'windows' ]; then
|
|
||||||
wget -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/windows/amd64/kubectl.exe"
|
wget -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/windows/amd64/kubectl.exe"
|
||||||
chmod +x "dist/kubectl.exe"
|
chmod +x "dist/kubectl.exe"
|
||||||
|
else
|
||||||
|
wget -O "dist/kubectl" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/${PLATFORM}/${ARCH}/kubectl"
|
||||||
|
chmod +x "dist/kubectl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -131,7 +131,7 @@ function shell_storybook(env) {
|
||||||
|
|
||||||
function shell_build_binary(platform, arch) {
|
function shell_build_binary(platform, arch) {
|
||||||
const binfile = 'dist/portainer';
|
const binfile = 'dist/portainer';
|
||||||
if (platform === 'linux') {
|
if (platform === 'linux' || platform === 'darwin') {
|
||||||
return `
|
return `
|
||||||
if [ -f ${binfile} ]; then
|
if [ -f ${binfile} ]; then
|
||||||
echo "Portainer binary exists";
|
echo "Portainer binary exists";
|
||||||
|
|
Loading…
Reference in New Issue