-
Notifications
You must be signed in to change notification settings - Fork 481
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Can you split up the build and push steps? #1152
Comments
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 |
1 similar comment
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 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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?
The text was updated successfully, but these errors were encountered: