2018-01-09 18:57:14 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_push")
|
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "image",
|
|
|
|
base = "@official_busybox//image",
|
|
|
|
entrypoint = ["/kubemark"],
|
|
|
|
files = ["//cmd/kubemark"],
|
|
|
|
)
|
|
|
|
|
|
|
|
docker_push(
|
|
|
|
name = "push",
|
|
|
|
image = ":image",
|
2018-03-06 22:33:18 +00:00
|
|
|
registry = "$(REGISTRY)",
|
|
|
|
repository = "kubemark",
|
2018-01-09 18:57:14 +00:00
|
|
|
stamp = True,
|
2018-03-06 22:33:18 +00:00
|
|
|
tag = "$(IMAGE_TAG)",
|
2018-01-09 18:57:14 +00:00
|
|
|
tags = ["manual"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|