-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman push --all-tags #2369
Comments
Tom could you look at this for buildah and then podman? |
Yep, been thinking about it in the back of the noggin, shoulda grabbed this earlier. |
Signed-off-by: TomSweeneyRedHat <[email protected]> Adds the --all-tags to the push command to emulate the one in the push command. Addresses containers/podman#2369 on the Buildah side, once approved similar changes will be made to Podman.
Signed-off-by: TomSweeneyRedHat <[email protected]> Adds the --all-tags to the push command to emulate the one in the push command. Addresses containers/podman#2369 on the Buildah side, once approved similar changes will be made to Podman. Signed-off-by: TomSweeneyRedHat <[email protected]>
Signed-off-by: TomSweeneyRedHat <[email protected]> Adds the --all-tags to the push command to emulate the one in the push command. Addresses containers/podman#2369 on the Buildah side, once approved similar changes will be made to Podman. Signed-off-by: TomSweeneyRedHat <[email protected]>
Signed-off-by: TomSweeneyRedHat <[email protected]> Adds the --all-tags to the push command to emulate the one in the push command. Addresses containers/podman#2369 on the Buildah side, once approved similar changes will be made to Podman. Signed-off-by: TomSweeneyRedHat <[email protected]>
Work is ongoing. |
@TomSweeneyRedHat Tells me this has stalled, and potentially blocked altogether based on comments from @mtrmac |
@rhatdan do you know what the status of this feature is? |
@TomSweeneyRedHat Could you give @nc-ruth and update and link to @mtrmac comments. |
@nc-ruth please reference containers/buildah#1380 and look for the comments from @mtrmac. In summary, there were a number of issues with the approach that I attempted there. in addition to that, @mtrmac was concerned that we'd overly push images that the user was unaware of. |
Thanks for the links @TomSweeneyRedHat, and it does makes sense with @mtrmac 's concerns. Thank you. |
@rhatdan could it be that it was never implemented for podman? With podman 4.1.1 in quay.io/podman/stable I still get this error:
|
Just to link current status, see containers/common#1099 for another work on this area. (I continue to be rather unimpressed by the need for the feature, but that’s neither here nor there.) |
Really? I maintain the images we use to run our CI workloads. Right now, I need to push a new image with three tags: I'm curious about your workflows since you are And yes, I read your rationale on containers/common#1099, and I believe it's a mistake to find excuses to avoid making a tool more ergonomic. |
So you can, conveniently enough, list the exact three tags to push. Is not having to type that out really worth forever worrying about surprise outcomes, like someone running the build system on a system that has already pulled another image from the same repo (e.g. for debugging, or because it was left around from a build attempt of a previous version)? Even if that can’t happen now, are your systems documented and set up to ensure that it won’t ever happen after a significant future refactoring of the CI system? My personal impression is that the trade-off of reliability vs. convenience just isn’t there, and that steering users towards being explicit is probably better long-term. Of course, users may decide for themselves the other choice would be better. But combine that with that fairly long history of several people trying to implement this, and running into non-trivial implementation and especially semantic difficulties in defining what exactly should Other people may well decide that this is a critical feature that must be done, and decide to work on it. I am “rather unimpressed” speaking only for myself, and I am not in charge of deciding what gets done in Podman at all. |
FWIW I've just stumbled on this as a cli incompatibility with I build a lot of images in CI jobs where it always tags the image with the git sha, then optionally with latest if on main branch, and/or also tag the image with a git tag if there is one. Then push them Not having this compatible argument in podman means I have to go back and complicate the conditional checks in the build scripts to track which tags are needed for the push command. I'm in the process of trying to roll out a migration from docker to podman company wide to support moving from docker+machine to kubernetes; extra complications in build scripts like this (minor one) makes it harder to sell the change! |
/kind feature
Description
It would be very usefull to have '--all-tags' option for
podman push
, so to be able to push all image tags at once to remote registry.Usecase: I'm building image from scratch and automatically tag local image with installed package version by build script. Then in separate CI job I'm testing image and if it's ok, I push it to remote registry. The problem is CI cannot know package version to use it as a tag in push job and without a tag podman push only latest image. Using whole build -> test -> push in single script makes it hard to maintain and using of CI/CD less usefull.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
fedora 29
The text was updated successfully, but these errors were encountered: