diff options
Diffstat (limited to 'src/rest-api/cmd/BUILD.bazel')
-rw-r--r-- | src/rest-api/cmd/BUILD.bazel | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/rest-api/cmd/BUILD.bazel b/src/rest-api/cmd/BUILD.bazel index 10554e8..4ecded7 100644 --- a/src/rest-api/cmd/BUILD.bazel +++ b/src/rest-api/cmd/BUILD.bazel @@ -1,4 +1,6 @@ +load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template") load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_cross_binary", "go_library") +load("@rules_helm//helm:defs.bzl", "helm_chart") load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push", "oci_tarball") load("@rules_pkg//:pkg.bzl", "pkg_tar") @@ -9,8 +11,8 @@ go_library( visibility = ["//visibility:private"], deps = [ "//src/rest-api/handler", - "//vendor/github.com/segmentio/kafka-go", - "//vendor/github.com/segmentio/kafka-go/sasl/plain", + "@com_github_segmentio_kafka_go//:kafka-go", + "@com_github_segmentio_kafka_go//sasl/plain", ], ) @@ -47,8 +49,18 @@ oci_tarball( repo_tags = [], ) +expand_template( + name = "stamped", + out = "_stamped.tags.txt", + stamp = 1, + stamp_substitutions = {"tag": "rest-api-{{STABLE_GIT_SHA}}"}, + template = ["tag"], +) + oci_push( name = "push", image = ":image", + remote_tags = ":stamped", repository = "docker.io/baitinq/fs-tracer", + visibility = ["//visibility:public"], ) |