forked from pipe-cd/pipecd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
36 lines (26 loc) · 1.2 KB
/
.bazelrc
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
29
30
31
32
33
34
35
36
common --color=yes
# Show us more details
build --show_timestamps --verbose_failures --incompatible_strict_action_env
test --test_output=errors --test_verbose_timeout_warnings --incompatible_strict_action_env
# Enable stamping workspace variables to binary.
build:stamping --stamp --workspace_status_command hack/print-workspace-status.sh
# Enable go race detection
build --features=race
# Output profiling to a file
build --profile=/tmp/build.bazelprofile
# Ensure that Bazel never runs as root, which can cause unit tests to fail
build --sandbox_fake_username
# Make /tmp hermetic
build --sandbox_tmpfs_path=/tmp
# Preset definitions
build --define DOCKER_REGISTRY=localhost:5000
# https://github.com/bazelbuild/rules_docker/issues/842
build --host_force_python=PY2
# CI configurations
build:ci --define DOCKER_REGISTRY=gcr.io/pipecd
build:ci --remote_http_cache=https://storage.googleapis.com/pipecd-bazel-cache
build:ci --google_credentials=/secrets/bazel_cache_service_account
# Platform configurations
build:linux --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64
build:darwin --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64
build:windows --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64