-
Notifications
You must be signed in to change notification settings - Fork 344
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
Publish latest-tagged images when building releases #2660
Conversation
Thanks for making a pull request to Elyra! To try out this branch on binder, follow this link: |
The reason why we didn't do this in the past is that not every Problem scenario:
|
Good point @ptitzler. IIRC we had decided to not publish Would a check that the last digit of the version (TAG) is 0 (zero) be sufficient? This would "break" if we were to introduce a brand new minor release after a major release. E.g/ 3.7.0, 4.0.0, 3.8.0 (breaks). But I would think we'd only apply patch releases on older versions following the introduction of a major release. EDIT: This doesn't address "latest" patch releases - duh! |
I misunderstood what others were saying earlier. The release script doesn't publish the container images, that is done manually post-python package release and push to pypi. |
Unfortunately this will not be true after version 3.8 was released and the problem still persists:
|
I think we need to incorporate the branch from which the release is being built and assuming that only 'latest" releases are built from the
This will occur on a branch other than |
I like the idea! If we can, we should avoid the need to patch the
|
I agree, but that's what already happens so this fits the current process. I'd rather not introduce a process change in this PR - especially since I figured it would be a 5-minute effort - which is clearly not the case. Since you're proposing placing this in the |
058539d
to
4537abb
Compare
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 based on code review.
What changes were proposed in this pull request?
When using the
Makefile
targets to build and publish images for each release, we were not equating the built images with alatest
tag. As a result, this needed to be a manual step that, often, fell through the cracks. This pull request applies thelatest
tag to the corresponding image when releases are being built (i.e., when theMakefile
variableTAG
does not equal"dev"
), and pushes those tagged images to the respective registry.How was this pull request tested?
This was tested by temporarily prefixing the
docker push
commands withecho
since I didn't want to update any hash values relative to the images already present. This test ensured that theif [ "$(TAG)" != "dev" ];
statement was executed correctly. I also usedmake -n publish-container-images
andmake -n TAG=3.7.0 publish-container-images
to visually see the results - which only echos the logic flow although one can't really ensure theif
statement is properly executed (thus the echo-based test).Resolves: #2659
Developer's Certificate of Origin 1.1