...
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 = "chariot2_lib",
6 srcs = ["main.go"],
7 importpath = "edge-infra.dev/cmd/edge/chariot2",
8 visibility = ["//visibility:private"],
9 deps = [
10 "//pkg/edge/chariot",
11 "//pkg/lib/server",
12 "@com_google_cloud_go_storage//:storage",
13 "@org_golang_google_api//option",
14 ],
15)
16
17go_binary(
18 name = "chariot2",
19 embed = [":chariot2_lib"],
20 visibility = ["//visibility:public"],
21)
22
23go_oci_image(
24 name = "chariot2_container",
25 embed = [":chariot2_lib"],
26 tags = ["manual"],
27)
28
29container_push(
30 name = "container_push",
31 image = ":chariot2_container",
32 image_name = "chariot2",
33 repository_file = "//hack/build/rules/container:workloads-repo",
34)
View as plain text