mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
13 lines
384 B
Bash
Executable file
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
|