forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremote
executable file
·28 lines (24 loc) · 824 Bytes
/
remote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -euo pipefail
script_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
certificate="$script_root/tmp/certs/engflow.crt"
key="$script_root/tmp/certs/engflow.key"
if [[ -f "$certificate" && -f "$key" ]]; then
echo "Using EngFlow RBE"
else
echo "EngFlow RBE certificate and key not installed in $certificate and $key"
echo "Contact the EngFlow Support Team <[email protected]> for access to these files"
exit 1
fi
if [[ $OSTYPE == darwin* ]]; then
# TODO(#24605): RBE fails with arm64 versions of Bazel on macOS
BAZELW_ARCH=amd64 ./bazelw "$@" \
--tls_client_certificate="$certificate" \
--tls_client_key="$key" \
--config remote-ci-macos
else
./bazelw "$@" \
--tls_client_certificate="$certificate" \
--tls_client_key="$key" \
--config remote-ci-linux
fi