-
Notifications
You must be signed in to change notification settings - Fork 642
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
Add skipPush option to build image configuration (#1243) #1368
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1368 +/- ##
============================================
+ Coverage 56.83% 57.13% +0.29%
- Complexity 1842 1844 +2
============================================
Files 159 159
Lines 8730 8723 -7
Branches 1337 1336 -1
============================================
+ Hits 4962 4984 +22
+ Misses 3299 3270 -29
Partials 469 469
|
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.
Looks good, but I would add a test for pushImages, too in RegistryServiceTest if possible.
If you dont have time for that, we can merge this PR nevertheless
Thanks a lot for your contribution !
@@ -45,6 +45,11 @@ public void pushImages(Collection<ImageConfiguration> imageConfigs, | |||
int retries, RegistryConfig registryConfig, boolean skipTag) throws DockerAccessException, MojoExecutionException { | |||
for (ImageConfiguration imageConfig : imageConfigs) { | |||
BuildImageConfiguration buildConfig = imageConfig.getBuildConfiguration(); | |||
if (buildConfig.skipPush()) { |
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.
I know there is a test missing in RegistryServiceTest
for pushImages, but it would be cool if you could add one to test this change, too (then the Sonar check would be happy, too). It shouldn't be hard to add, as it should work the same as the pull test, too.
Ah, and could you please also add an enty to the changelog.md ? thanks ! |
both done in 2dba1fb |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
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.
Cool, thanks a ton !
Add skipPush option to build image configuration from #1243
Was getting test failures locally with
AuthConfigFactoryTest
due to my~/.kube/config
setup, wasn't sure what needed to be done to get those to pass.Example of the output from my build which consumed these proposed plugin changes.