File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ artifacts:
1010 paths : ['.logs/*.log']
1111
1212steps :
13- - name : gcr.io/cloud-builders/bazel@sha256:05a39d8254df537c87bd6272f5c9f5ac8c77305c3e6dea9527c563da9016d0c3
13+ - name : gcr.io/cloud-builders/bazel@sha256:70e96d9faec4bab40a9d8d55d6b86ce2657927d8bca6bdc2dcb21a82b66dbdf7 # 5.4.0
1414 env :
1515 - PROJECT_ID=${PROJECT_ID}
1616 - COMMIT_SHA=${COMMIT_SHA}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -o errexit -o xtrace -o pipefail
33
4+ BAZEL_REMOTE_VERSION=" 2.6.1"
5+ BAZEL_REMOTE_SHA256=" 025d53aeb03a7fdd4a0e76262a5ae9eeee9f64d53ca510deff1c84cf3f276784"
6+ BAZELISK_VERSION=" 1.27.0"
7+ BAZELISK_SHA256=" e1508323f347ad1465a887bc5d2bfb91cffc232d11e8e997b623227c6b32fb76"
8+
49# setup remote cache
5- curl -fsSL https://github.com/buchgr/bazel-remote/releases/download/v2.4.0 /bazel-remote-2.4.0 -linux-x86_64 -o bazel-remote
6- echo ' 717a44dd526c574b0a0edda1159f5795cc1b2257db1d519280a3d7a9c5addde5 bazel-remote' | sha256sum --check
10+ curl -fsSL " https://github.com/buchgr/bazel-remote/releases/download/v ${BAZEL_REMOTE_VERSION} /bazel-remote-${BAZEL_REMOTE_VERSION} -linux-amd64 " -o bazel-remote
11+ echo " ${BAZEL_REMOTE_SHA256} bazel-remote" | sha256sum --check
712chmod +x bazel-remote
813mkdir .logs
914./bazel-remote --max_size 8 --dir ~ /.cache/bazel-remote --experimental_remote_asset_api --grpc_address 0.0.0.0:4700 --gcs_proxy.bucket $REMOTE_CACHE_GCS --gcs_proxy.use_default_credentials > .logs/bazel-remote.log 2>&1 &
1015
1116# install bazelisk (TODO: there's probably a better way to do this)
12- curl -fsSL https://github.com/bazelbuild/bazelisk/releases/download/v1.21.0 /bazelisk-linux-amd64 -o bazelisk
13- echo ' 655a5c675dacf3b7ef4970688b6a54598aa30cbaa0b9e717cd1412c1ef9ec5a7 bazelisk' | sha256sum --check
17+ curl -fsSL " https://github.com/bazelbuild/bazelisk/releases/download/v ${BAZELISK_VERSION} /bazelisk-linux-amd64" -o bazelisk
18+ echo " ${BAZELISK_SHA256} bazelisk" | sha256sum --check
1419chmod a+x bazelisk
1520
1621# setup remote caching and remote asset API.
You can’t perform that action at this time.
0 commit comments