mirror of
https://github.com/wassname/ray.git
synced 2026-07-27 11:26:41 +08:00
[release] Do not tag docker latest on release builds (#11694)
* fix * Added comment Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
committed by
Alex Wu
co-authored by
Alex Wu
parent
e8c4f9e776
commit
af5252901a
@@ -232,9 +232,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/<image>:nightly<arch_tag>
|
||||
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/<image>:nightly<arch_tag>
|
||||
docker_push(full_image, full_arch_tag)
|
||||
|
||||
# Ex: specific_tag == "1.0.1" or "<sha>" or "<date>"
|
||||
specific_tag = get_new_tag(
|
||||
full_arch_tag, date_tag if "-deps" in image else sha_tag)
|
||||
# Tag and push rayproject/<image>:<sha/date><arch_tag>
|
||||
@@ -244,15 +248,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/<image>:latest<arch_tag>
|
||||
DOCKER_CLIENT.api.tag(
|
||||
image=f"{full_image}:{full_arch_tag}",
|
||||
repository=full_image,
|
||||
tag=latest_tag)
|
||||
docker_push(full_image, latest_tag)
|
||||
|
||||
|
||||
# Build base-deps/ray-deps only on file change, 2 weeks, per release
|
||||
# Build ray, ray-ml, autoscaler every time
|
||||
|
||||
Reference in New Issue
Block a user