Skip to content

Instantly share code, notes, and snippets.

@NathanHowell
Last active January 29, 2020 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NathanHowell/43903f7d22b0cd724c7dd696e32f2b90 to your computer and use it in GitHub Desktop.
Save NathanHowell/43903f7d22b0cd724c7dd696e32f2b90 to your computer and use it in GitHub Desktop.
How to push a bundle of images in parallel
load("@io_bazel_rules_docker//container:bundle.bzl", "container_bundle")
load("@io_bazel_rules_docker//container:image.bzl", "container_image")
load("@io_bazel_rules_docker//contrib:push-all.bzl", _push_bundle = "docker_push")
container_image(
name = "my_first_image",
...
)
container_image(
name = "my_second_image",
...
)
container_bundle(
name = "bundle",
images = {
"foo.us.gcr.io/blah:tag": ":my_first_image",
"foo.us.gcr.io/quux:tag": ":my_second_image",
},
visibility = ["//visibility:public"],
)
_push_bundle(
name = "push",
bundle = ":bundle",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment