a761412bd9
* feat(build): introduce buildx * feat(build): excluded compose v3 * feat(build): excluded compose v3 * feat(build): revert back the Docker binary for Windows * * fix liblicense url override Co-authored-by: yi-portainer <yi.chen@portainer.io>
16 lines
470 B
Bash
Executable File
16 lines
470 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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
|
|
wget -O "dist/kompose.exe" "https://github.com/kubernetes/kompose/releases/download/${KOMPOSE_VERSION}/kompose-windows-amd64.exe"
|
|
chmod +x "dist/kompose.exe"
|
|
fi
|
|
|
|
exit 0
|