...

Text file src/edge-infra.dev/cmd/sds/remoteaccess/wireguardctl/BUILD.bazel

Documentation: edge-infra.dev/cmd/sds/remoteaccess/wireguardctl

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

View as plain text