Skip to content

Commit fbaee9d

Browse files
committed
Update cloud build bazel tools
Signed-off-by: Appu Goundan <appu@google.com>
1 parent 51d7beb commit fbaee9d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.cloudbuild/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ artifacts:
1010
paths: ['.logs/*.log']
1111

1212
steps:
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}

.cloudbuild/release.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
#!/usr/bin/env bash
22
set -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
712
chmod +x bazel-remote
813
mkdir .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
1419
chmod a+x bazelisk
1520

1621
# setup remote caching and remote asset API.

0 commit comments

Comments
 (0)