bazel-contrib / bazel-contrib/rules_oci

How to push image to multiple repositories?

Open
#248 17 comments 0 reactions 1 assignee Claimed by @thesayyn View on GitHub
enhancement need: discussion performance
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.