-
Notifications
You must be signed in to change notification settings - Fork 644
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
Remove buildx cache. Do not delete builder instances after goal. Us… #1579
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1579 +/- ##
============================================
- Coverage 63.54% 63.51% -0.03%
+ Complexity 2165 2163 -2
============================================
Files 170 170
Lines 9915 9905 -10
Branches 1359 1359
============================================
- Hits 6300 6291 -9
+ Misses 3086 3085 -1
Partials 529 529
|
…builder instance to cache artifacts closes #1576
@rohanKanojia, please review |
Thanks, the proposal is sane. I checked out your branch and The first
|
A builder is nothing more than a set of configurations stored in config.json in the config directory. In order to list the builder using the cli, you must set |
I also ran this version to build our platform and can confirm, that the cached versions from the build goal are now used in the push goal. However wouldn't it in general make more sense to push the images directly, instead of trying to build them again in the push goal, even if the cached images are now used? |
You get this behavior if you only have a single |
I have only one |
Currently, you will need both goals. This is consistent with the behavior of non-buildx builds: build, test, push. We will consider a single build/push goal if there is high demand. How much time do you find the separate goals add to your build? Is this a significant hit? |
Now with the caching being enabled, the impact of the separate goals isn't that significant for our CI pipeline. For local development we can work around this and build the images without buildx, so for our usecase I don't see the immediate demand for a single goal. However I can see other projects having their build time growing significantly when building multiple images for multiple platforms, so I can see the benefits of just one single, combined goal. I really appreciate the work you're doing here, so thank you for that! |
Kudos, SonarCloud Quality Gate passed! |
…e builder instance to cache artifacts
closes #1576