load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image") go_library( name = "test_runner_lib", testonly = True, srcs = ["main.go"], data = ["//pkg/edge/datasync/controllers/couchctl:couchctl_test"], importpath = "edge-infra.dev/pkg/edge/datasync/controllers/couchctl/test_runner", visibility = ["//visibility:private"], deps = [ "//pkg/lib/build/bazel", "@io_bazel_rules_go//go/runfiles:go_default_library", ], ) go_binary( name = "test_runner", testonly = True, embed = [":test_runner_lib"], visibility = ["//visibility:public"], ) go_oci_image( name = "couchctl_test_runner_container", testonly = True, embed = [":test_runner_lib"], # data = [ # TODO: only bring test binaries with us for container packaging, otherwise # use bazel # ], tags = [ "manual", "no-remote-cache", ], ) container_push( name = "container_push", testonly = True, image = ":couchctl_test_runner_container", image_name = "couchctl_test_runner", repository_file = "//hack/build/rules/container:workloads-repo", )