I've been going back and forth over this for the last couple of weeks - consider the following scenario - a bundle was just built locally, and the images have not been pushed - before calling cnab-to-oci to push the bundle, runtimes must first push the images to a repository. Then, cnab-to-oci copies those images to a new repository, which is rather inefficient.
Do people have strong opinions against pushing images? I guess a sane workflow would be to checking if the image exists remotely and trying to copy (current behaviour), then fall back to tagging it accordingly and pushing it to the target repository.
I've been going back and forth over this for the last couple of weeks - consider the following scenario - a bundle was just built locally, and the images have not been pushed - before calling
cnab-to-oci
to push the bundle, runtimes must first push the images to a repository. Then,cnab-to-oci
copies those images to a new repository, which is rather inefficient.Do people have strong opinions against pushing images? I guess a sane workflow would be to checking if the image exists remotely and trying to copy (current behaviour), then fall back to tagging it accordingly and pushing it to the target repository.
Thoughts?