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 = "bannerctl_lib", srcs = ["main.go"], importpath = "edge-infra.dev/cmd/edge/bannerctl", visibility = ["//visibility:private"], deps = [ "//pkg/edge/controllers/bannerctl", "@com_github_joho_godotenv//:godotenv", ], ) go_binary( name = "bannerctl", data = [ ":envfile", ], embed = [":bannerctl_lib"], visibility = ["//visibility:public"], ) filegroup( name = "envfile", # buildifier: disable=constant-glob srcs = glob([".env"]), visibility = ["//visibility:public"], ) go_oci_image( name = "bannerctl_container", embed = [":bannerctl_lib"], tags = ["manual"], ) container_push( name = "container_push", image = ":bannerctl_container", image_name = "bannerctl", repository_file = "//hack/build/rules/container:workloads-repo", )