Can you split up the build and push steps? #2718
Replies: 20 comments
-
To push from buildx you would run the build again with push option. If you have image in docker then you do |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer! |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
@MauriceNino |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm also intéressée on this topic. I want to build, then test and then push. |
Beta Was this translation helpful? Give feedback.
-
If you have already ran the build previously and nothing has changed, then building with the |
Beta Was this translation helpful? Give feedback.
-
This issue is related to my discussion about running targets sequentially: #1976 |
Beta Was this translation helpful? Give feedback.
-
Also interested, in any pipeline we need security tests after build and before any push to external registry. |
Beta Was this translation helpful? Give feedback.
-
Bump +it would be nice to have support within buildx for the |
Beta Was this translation helpful? Give feedback.
-
Is this a potential work around?
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I find it easier to call the same build command twice, the first one without |
Beta Was this translation helpful? Give feedback.
-
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 xxx
after that, it just returns the latest manifest from docker hub.Where is the built manifest, and how can I push it after the build?
Beta Was this translation helpful? Give feedback.
All reactions