Skip to content

Commit c795dd5

Browse files
committed
RE
1 parent 0874aaa commit c795dd5

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ common --incompatible_use_plus_in_repo_names
1111
build --bes_results_url=https://app.buildbuddy.io/invocation/
1212
build --bes_backend=grpcs://remote.buildbuddy.io
1313

14+
build:rbe --platforms=//:docker_image_platform
15+
build:rbe --host_platform=//:docker_image_platform
16+
17+
1418
# Don't let environment variables pollute the build
1519
# PATH is part of the action input and can lead to massive cache misses
1620
build --incompatible_strict_action_env

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
password: ${{ secrets.GH_TOKEN }}
3131

3232
- name: Build and test
33-
run: bazel build --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_TEST }} --remote_cache=grpcs://remote.buildbuddy.io --remote_timeout=10m //...
33+
run: bazel build --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_TEST }} --remote_cache=grpcs://remote.buildbuddy.io --remote_timeout=10m --remote_executor=grpcs://remote.buildbuddy.io --config=rbe //...

BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,3 +529,16 @@ test_suite(
529529
":albatross-test-misc",
530530
],
531531
)
532+
533+
platform(
534+
name = "docker_image_platform",
535+
constraint_values = [
536+
"@platforms//cpu:x86_64",
537+
"@platforms//os:linux",
538+
],
539+
exec_properties = {
540+
"OSFamily": "Linux",
541+
"dockerNetwork": "off",
542+
"container-image": "docker://gcr.io/flame-public/rbe-ubuntu20-04:latest",
543+
},
544+
)

0 commit comments

Comments
 (0)