mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Add Bazelisk support to Dockerfile.custom
This commit is contained in:
parent
5c31ab00a7
commit
a7e1e727ef
5 changed files with 45 additions and 1 deletions
14
scripts/install-bazelisk
Executable file
14
scripts/install-bazelisk
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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-amd64"
|
||||
|
||||
curl -fsSL "$BAZELISK_DOWNLOAD_URL" -o bazelisk
|
||||
echo "${BAZELISK_DOWNLOAD_SHA256} bazelisk" | sha256sum -c -
|
||||
|
||||
chmod +x bazelisk
|
||||
mv bazelisk /usr/local/bin/bazel
|
||||
Loading…
Add table
Add a link
Reference in a new issue