mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 23:00:19 +00:00
35 lines
733 B
Python
35 lines
733 B
Python
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",
|
|
registry = "gcr.io",
|
|
repository = "$(PROJECT)/kubemark",
|
|
stamp = True,
|
|
tag = "latest",
|
|
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"],
|
|
)
|