-
Notifications
You must be signed in to change notification settings - Fork 391
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
chore: default the writer of docker build to Stderr
incase of single image
#5148
Conversation
🍕 Here are the new binary sizes!
|
Codecov Report
@@ Coverage Diff @@
## mainline #5148 +/- ##
============================================
- Coverage 69.51% 69.48% -0.04%
============================================
Files 295 295
Lines 43333 43387 +54
Branches 285 285
============================================
+ Hits 30124 30148 +24
- Misses 11740 11767 +27
- Partials 1469 1472 +3
|
Could we add a unit test for multiple images? |
I think we already had a test case for this scenario of multiple images over here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
internal/pkg/cli/deploy/workload.go
Outdated
@@ -401,6 +401,7 @@ func (d *workloadDeployer) uploadContainerImages(out *UploadArtifactsOutput) err | |||
if len(buildArgsPerContainer) == 0 { | |||
return nil | |||
} | |||
isMultipleContainerImages := len(buildArgsPerContainer) > 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make more sense for us to call a separate function if isMultipleContainerImages
is true (after repository.Login()
)? The reason is we probably don't need the parallel part at all for single build case and it'll be easier to read/maintain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome
related #5124, #5067
This PR will remove the rolling display when there is only one image to build.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.