Skip to content
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

docker: Only push latest tag when no others where specified #1496

Merged
merged 2 commits into from Oct 20, 2021

Conversation

Postremus
Copy link
Contributor

@Postremus Postremus commented Oct 5, 2021

Currently, there is no way to only push the specified tags. Latest is always pushed, for docker and jib mode.
I changed both build modes, so they now behave as follows.

  • latest is only automaticly pushed when no other tags are specified
  • Otherwise if tags are specified, only those are pushed.

Jib however did not respect skipTag, which I also implemented.

This is a draft pr, since this changes established behaviour of the plugin, and I want feedback on it first.

This pr only handled docker mode, for jib changes, please see #1498.

closes #1495

@rohanKanojia
Copy link
Member

rohanKanojia commented Oct 18, 2021

Sorry, for the late reply; I just came back from PTO.

Thanks a lot for your PR 👍 . I think it's correcting wrong behavior. I was able to reproduce this issue with https://github.com/rohankanojia-forks/fabric8-dmp-1495-reproducer .

I think we should go ahead with fixing this. We can add a note in doc/changelog.md regarding the change in behavior.

Would it be possible for you to move JibService related changes to a separate PR? Also, some tests for validating changes in RegistryService would be nice too :-)

Signed-off-by: Martin Panzer <postremus1996@googlemail.com>
@Postremus Postremus changed the title Only push latest tag when no others where specified docker: Only push latest tag when no others where specified Oct 19, 2021
@Postremus Postremus marked this pull request as ready for review October 19, 2021 21:01
@Postremus
Copy link
Contributor Author

@rohanKanojia done

@rohanKanojia rohanKanojia merged commit edfce28 into fabric8io:master Oct 20, 2021
@Postremus Postremus deleted the #1495 branch October 20, 2021 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest tag is always pushed, even when not specified
2 participants