Last active
January 29, 2020 00:59
-
-
Save NathanHowell/43903f7d22b0cd724c7dd696e32f2b90 to your computer and use it in GitHub Desktop.
How to push a bundle of images in parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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