mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
14 lines
387 B
Bash
Executable file
14 lines
387 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeou pipefail
|
|
|
|
BAZELISK_VERSION=${1}
|
|
BAZELISK_DOWNLOAD_SHA256=${2}
|
|
|
|
BAZELISK_DOWNLOAD_URL="https://github.com/bazelbuild/bazelisk/releases/download/v${BAZELISK_VERSION}/bazelisk-linux-${TARGETARCH:-amd64}"
|
|
|
|
curl -fsSL "$BAZELISK_DOWNLOAD_URL" -o bazelisk
|
|
echo "${BAZELISK_DOWNLOAD_SHA256} bazelisk" | sha256sum -c -
|
|
|
|
chmod +x bazelisk
|
|
mv bazelisk /usr/local/bin/bazel
|