...

Text file src/edge-infra.dev/cmd/edge/datasync/couchctl/BUILD.bazel

Documentation: edge-infra.dev/cmd/edge/datasync/couchctl

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image")
     3
     4go_library(
     5    name = "couchctl_lib",
     6    srcs = ["main.go"],
     7    importpath = "edge-infra.dev/cmd/edge/datasync/couchctl",
     8    visibility = ["//visibility:private"],
     9    deps = ["//pkg/edge/datasync/controllers/couchctl"],
    10)
    11
    12go_binary(
    13    name = "couchctl",
    14    embed = [":couchctl_lib"],
    15    visibility = ["//visibility:public"],
    16)
    17
    18go_oci_image(
    19    name = "couchctl_container",
    20    embed = [":couchctl_lib"],
    21    tags = ["manual"],
    22)
    23
    24container_push(
    25    name = "container_push",
    26    image = ":couchctl_container",
    27    image_name = "couchctl",
    28    repository_file = "//hack/build/rules/container:workloads-repo",
    29)

View as plain text