blob: 699082d1a6c5b948a683acae737ce4b073f39de9 [file] [log] [blame]
Serge Bazanskicaa12082023-02-16 14:54:04 +01001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
Tim Windelschmidt8867b2c2023-04-06 15:09:30 +02002load("//build/static_binary_tarball:def.bzl", "static_binary_tarball")
Serge Bazanskicaa12082023-02-16 14:54:04 +01003
4go_binary(
5 name = "test_agent",
6 embed = [":test_agent_lib"],
7 visibility = [
8 "//cloud/shepherd/equinix/manager:__pkg__",
9 ],
10)
11
12go_library(
13 name = "test_agent_lib",
14 srcs = ["main.go"],
15 importpath = "source.monogon.dev/cloud/shepherd/equinix/manager/test_agent",
16 visibility = ["//visibility:private"],
17 deps = [
18 "//cloud/agent/api",
19 "@org_golang_google_protobuf//proto",
20 ],
21)
Tim Windelschmidt8867b2c2023-04-06 15:09:30 +020022
23# Used by container_images, forces a static build of the test_agent.
24static_binary_tarball(
25 name = "test_agent_layer",
26 executable = ":test_agent",
27 visibility = ["//visibility:public"],
28)