bazel-contrib / bazel-contrib/rules_oci
How to push image to multiple repositories?
- Dominant language
- Starlark
- Stars
- 423
- Forks
- 213
- Avg merge
- 53m
- Merged PRs (30d)
- 1
Description
I am trying to replicate logic from rules_docker where I can have a `container_bundle` given to a `docker_push`.
```python
container_bundle(
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/beacon-chain:latest": ":image_with_creation_time",
"index.docker.io/prysmaticlabs/prysm-beacon-chain:latest": ":image_with_creation_time",
},
tags = ["manual"],
visibility = ["//beacon-chain:__pkg__"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
visibility = ["//beacon-chain:__pkg__"],
)
```
The end result was that I pushed an image to multiple repositories with a single target.
Contributor guide
Assessment
This issue has not been assessed yet.