bazel: add buildbarn toolchain (Ubuntu 22.04)

This commit is contained in:
Malte Poll 2023-11-03 11:45:58 +01:00
parent 955c16a57d
commit 84cd22b6ee
2 changed files with 30 additions and 1 deletions

24
bazel/rbe/BUILD.bazel Normal file
View file

@ -0,0 +1,24 @@
constraint_setting(
name = "container-image",
)
constraint_value(
name = "ubuntu-act-22-04",
constraint_setting = ":container-image",
)
REMOTE_EXEC_CONSTRAINTS = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
"@rules_nixpkgs_core//constraints:support_nix",
":ubuntu-act-22-04",
]
platform(
name = "ubuntu-act-22-04-platform",
constraint_values = REMOTE_EXEC_CONSTRAINTS,
exec_properties = {
"OSFamily": "linux",
"container-image": "docker://ghcr.io/catthehacker/ubuntu:act-22.04",
},
)