gitlab-build-images/scripts/install-vcluster
2024-05-07 10:48:03 +00:00

13 lines
384 B
Bash
Executable file

#!/bin/bash
set -xeou pipefail
VCLUSTER_VERSION=${1}
VCLUSTER_DOWNLOAD_SHA256=${2}
TARGETARCH=${TARGETARCH:-amd64}
VCLUSTER_DOWNLOAD_URL=https://github.com/loft-sh/vcluster/releases/download/v${VCLUSTER_VERSION}/vcluster-linux-${TARGETARCH}
/scripts/download-file vcluster "$VCLUSTER_DOWNLOAD_URL" "$VCLUSTER_DOWNLOAD_SHA256"
chmod +x vcluster
mv vcluster /usr/local/bin/vcluster