diff --git a/ci/travis/build-docker-images.py b/ci/travis/build-docker-images.py index a1376641a..435837f4a 100644 --- a/ci/travis/build-docker-images.py +++ b/ci/travis/build-docker-images.py @@ -247,9 +247,13 @@ def push_and_tag_images(push_base_images: bool): for arch_tag in ["-cpu", "-gpu", ""]: full_arch_tag = f"nightly{arch_tag}" - # Tag and push rayproject/:nightly - docker_push(full_image, full_arch_tag) + # Do not tag release builds because they are no longer up to date + # after the branch cut. + if not _release_build(): + # Tag and push rayproject/:nightly + docker_push(full_image, full_arch_tag) + # Ex: specific_tag == "1.0.1" or "" or "" specific_tag = get_new_tag( full_arch_tag, date_tag if "-deps" in image else sha_tag) # Tag and push rayproject/: @@ -259,15 +263,6 @@ def push_and_tag_images(push_base_images: bool): tag=specific_tag) docker_push(full_image, specific_tag) - if _release_build(): - latest_tag = get_new_tag(full_arch_tag, "latest") - # Tag and push rayproject/:latest - DOCKER_CLIENT.api.tag( - image=f"{full_image}:{full_arch_tag}", - repository=full_image, - tag=latest_tag) - docker_push(full_image, latest_tag) - # Push infra here: # https://github.com/christian-korneck/docker-pushrm/blob/master/README-containers.md#push-a-readme-file-to-dockerhub # noqa