Skip to content

Commit

Permalink
chore: remove old bazel download
Browse files Browse the repository at this point in the history
Do not pre-download old Bazel versions.

Bump `bazelisk` to more recent version `1.24.0`
([email protected] still can be used with [email protected]).

Change-Id: I298ac561a2c365758fb85ed882915241cf91009a
Signed-off-by: Sebastian Birunt <[email protected]>
  • Loading branch information
birunts committed Jan 29, 2025
1 parent 22e4d1d commit dfd1037
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ci/docker/bazelisk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG GO_VERSION=1.18
FROM golang:${GO_VERSION}-bullseye as bazelisk

ARG BAZELISK_VERSION=1.11.0
ARG BAZELISK_VERSION=1.24.0
RUN CGO_ENABLED=0 GOOS=linux GOBIN=/opt/bazelisk/bin go install github.com/bazelbuild/bazelisk@v${BAZELISK_VERSION}

FROM debian:bullseye-slim
Expand Down Expand Up @@ -31,7 +31,6 @@ COPY --from=bazelisk /opt/bazelisk/bin/bazelisk .local/bin/bazelisk
ENV PATH /home/ci/.local/bin:$PATH
ENV BAZELISK_HOME /home/ci/.cache/bazelisk

# Pre-download some bazel version to save time in CI
# Pre-download _latest_ bazel version to save time in CI
RUN USE_BAZEL_VERSION=latest bazelisk --version && \
USE_BAZEL_VERSION=6.0.0 bazelisk --version && \
USE_BAZEL_VERSION=5.4.0 bazelisk --version
USE_BAZEL_VERSION=8.0.0 bazelisk --version

0 comments on commit dfd1037

Please sign in to comment.