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"
|
||||
mv "helm" "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
|
||||
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
|
||||
|
|
|
@ -4,12 +4,12 @@ PLATFORM=$1
|
|||
ARCH=$2
|
||||
KOMPOSE_VERSION=$3
|
||||
|
||||
if [ "${PLATFORM}" == 'linux' ]; 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
|
||||
if [ "${PLATFORM}" == 'windows' ]; then
|
||||
wget -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-windows-amd64.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
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -4,12 +4,12 @@ PLATFORM=$1
|
|||
ARCH=$2
|
||||
KUBECTL_VERSION=$3
|
||||
|
||||
if [ "${PLATFORM}" == 'linux' ]; 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
|
||||
if [ "${PLATFORM}" == 'windows' ]; then
|
||||
wget -O "dist/kubectl.exe" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/windows/amd64/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
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -131,7 +131,7 @@ function shell_storybook(env) {
|
|||
|
||||
function shell_build_binary(platform, arch) {
|
||||
const binfile = 'dist/portainer';
|
||||
if (platform === 'linux') {
|
||||
if (platform === 'linux' || platform === 'darwin') {
|
||||
return `
|
||||
if [ -f ${binfile} ]; then
|
||||
echo "Portainer binary exists";
|
||||
|
|
Loading…
Reference in New Issue