2023-05-02 03:13:37 +00:00
#!/usr/bin/env bash
set -euo pipefail
PLATFORM = ${ 1 :- "linux" }
ARCH = ${ 2 :- "amd64" }
BINARY_VERSION_FILE = "./binary-version.json"
dockerVersion = $( jq -r '.docker' < " ${ BINARY_VERSION_FILE } " )
dockerComposeVersion = $( jq -r '.dockerCompose' < " ${ BINARY_VERSION_FILE } " )
helmVersion = $( jq -r '.helm' < " ${ BINARY_VERSION_FILE } " )
kubectlVersion = $( jq -r '.kubectl' < " ${ BINARY_VERSION_FILE } " )
2023-10-24 10:30:33 +00:00
mingitVersion = $( jq -r '.mingit' < " ${ BINARY_VERSION_FILE } " )
2023-05-02 03:13:37 +00:00
mkdir -p dist
2023-10-24 10:30:33 +00:00
echo " Downloading binaries for docker ${ dockerVersion } , docker-compose ${ dockerComposeVersion } , helm ${ helmVersion } , kubectl ${ kubectlVersion } , and mingit ${ mingitVersion } "
2023-05-02 03:13:37 +00:00
./build/download_docker_binary.sh " $PLATFORM " " $ARCH " " $dockerVersion " &
./build/download_docker_compose_binary.sh " $PLATFORM " " $ARCH " " $dockerComposeVersion " &
./build/download_helm_binary.sh " $PLATFORM " " $ARCH " " $helmVersion " &
./build/download_kubectl_binary.sh " $PLATFORM " " $ARCH " " $kubectlVersion " &
2023-10-24 10:30:33 +00:00
./build/download_mingit_binary.sh " $PLATFORM " " $ARCH " " $mingitVersion " &
2023-05-02 03:13:37 +00:00
wait