Can you split up the build and push steps? #2718
Replies: 23 comments 3 replies
|
To push from buildx you would run the build again with push option. If you have image in docker then you do |
|
Thank you for your answer! |
|
@tonistiigi What is the best output format and external program for outputting a multi-platform image and later pushing it to docker hub? As far as I read there are still problems with pushing OCI images to docker hub: docker/hub-feedback#1871 Building again with |
@MauriceNino |
|
Also interested. GitHub repository often returns errors, and I'll be interested in separating the build and push to be able to backoff retry the push step. |
|
Yeah, this becoming a necessity. There should be a method to build a multi arch image, and then push at a later time. I agree with @MauriceNino this is needed for additional CI processes. |
|
Another reason for the separation is that I would like to run those steps in parallel:
When the terraform apply has finished I can push the image to the newly created repository. |
I would be concerned if I build again that it would be possible for something pulled in to do the build again would have changed in the interim. It's unlikely if the interim is short, but not impossible. |
|
Hello, I'm also intéressée on this topic. I want to build, then test and then push. |
If you have already ran the build previously and nothing has changed, then building with the |
|
This issue is related to my discussion about running targets sequentially: #1976 |
|
Also interested, in any pipeline we need security tests after build and before any push to external registry. |
|
bump |
|
bump |
|
Bump |
|
Bump |
|
Bump +it would be nice to have support within buildx for the |
|
Is this a potential work around? |
|
If your CI system allows for sidecars, an alternative might be to run your own registry: Github example: I believe that should work, but I'm having issues with the registry migration piece: I believe it's due to the target being an AWS ECR with immutability enabled (I'll update this post if I end up resolving) edit: This works instead of |
I find it easier to call the same build command twice, the first one without |
|
I've opened an actual request issue for this here: #2956 |
|
Assuming you've configured your Docker daemon to use the If the |
|
this is absolutely wild that one of the core parts of image management doesn't "just work" (ignoring the variables) if I do: and then in a separate command: I get an error, and my image gets deleted... this should not be something difficult to do to just add another tag afterwards and push that tag to a different registry... the ONLY way it works is to either build two single arch images separately and manually create the manifest or use the this is just absolutely mind blowing that something so insanely simple is made so overly complicated |
Uh oh!
There was an error while loading. Please reload this page.
Related to #166
I want to first build the image, then do some other release steps and then release the image to docker hub.
For that, I thought I should use
-o type=image,name=xxx.But when I run
docker manifest inspect xxxafter that, it just returns the latest manifest from docker hub.Where is the built manifest, and how can I push it after the build?
All reactions