BUILD 968 B

123456789101112131415161718192021222324252627282930313233
  1. load("//build:container.bzl", "multi_arch_container")
  2. load("//build:platforms.bzl", "SERVER_PLATFORMS")
  3. multi_arch_container(
  4. name = "hyperkube",
  5. architectures = SERVER_PLATFORMS["linux"],
  6. base = "@debian-hyperkube-base-{ARCH}//image",
  7. # {ARCH} is replaced by the macro, but STABLE_ vars are replaced by the
  8. # build stamping, so we need to escape them
  9. docker_push_tags = ["{{STABLE_DOCKER_PUSH_REGISTRY}}/hyperkube-{ARCH}:{{STABLE_DOCKER_TAG}}"],
  10. docker_tags = ["{{STABLE_DOCKER_REGISTRY}}/hyperkube-{ARCH}:{{STABLE_DOCKER_TAG}}"],
  11. files = [
  12. "//cmd/hyperkube",
  13. ],
  14. stamp = True,
  15. tags = ["manual"],
  16. visibility = ["//visibility:public"],
  17. )
  18. filegroup(
  19. name = "package-srcs",
  20. srcs = glob(["**"]),
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:private"],
  23. )
  24. filegroup(
  25. name = "all-srcs",
  26. srcs = [":package-srcs"],
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. )