Skip to content

Commit

Permalink
feat(ray): generate sha256 as tag if not presented (#120)
Browse files Browse the repository at this point in the history
Because

- Support optional tag in config

This commit

- generate sha256 hash as tag for user if not specified in config file
  • Loading branch information
heiruwu authored Mar 25, 2024
1 parent f974f98 commit 6abb538
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion instill/helpers/build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import os
import shutil

Expand All @@ -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__
Expand Down

0 comments on commit 6abb538

Please sign in to comment.