From 60ca154e8f80a24bd11c6a68f57026cc3d1d88a6 Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Tue, 26 Mar 2024 05:02:45 +0800 Subject: [PATCH] feat(ray): generate sha256 as tag if not presented --- instill/helpers/build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/instill/helpers/build.py b/instill/helpers/build.py index a3c5858..42e25a9 100644 --- a/instill/helpers/build.py +++ b/instill/helpers/build.py @@ -1,3 +1,4 @@ +import hashlib import os import shutil @@ -24,7 +25,11 @@ build = config["build"] repo = config["repo"] - tag = config["tag"] + tag = ( + config["tag"] + if config["tag"] is not None and config["tag"] != "" + else hashlib.sha256().hexdigest() + ) python_version = build["python_version"].replace(".", "") ray_version = ray.__version__