...

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

Documentation: edge-infra.dev/cmd/edge/envctl

     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 = "envctl_lib",
     6    srcs = ["main.go"],
     7    importpath = "edge-infra.dev/cmd/edge/envctl",
     8    visibility = ["//visibility:private"],
     9    deps = ["//pkg/edge/controllers/envctl"],
    10)
    11
    12go_binary(
    13    name = "envctl",
    14    embed = [":envctl_lib"],
    15    visibility = ["//visibility:public"],
    16)
    17
    18go_oci_image(
    19    name = "envctl_container",
    20    embed = [":envctl_lib"],
    21    tags = [
    22        "manual",
    23        "no-remote-cache",
    24    ],
    25)
    26
    27container_push(
    28    name = "container_push",
    29    image = ":envctl_container",
    30    image_name = "envctl",
    31    repository_file = "//hack/build/rules/container:workloads-repo",
    32)

View as plain text