mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Docker] Add commit as label (#20504)
Adds the Ray commit sha as a label for the docker image.
This commit is contained in:
parent
1cadd61917
commit
4cbcb11458
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ def _build_docker_image(image_name: str,
|
|||
|
||||
labels = {
|
||||
"image-name": image_name,
|
||||
"python-version": PY_MATRIX[py_version]
|
||||
"python-version": PY_MATRIX[py_version],
|
||||
"ray-commit": _get_commit_sha()
|
||||
}
|
||||
if image_type in CUDA_FULL:
|
||||
labels["cuda-version"] = CUDA_FULL[image_type]
|
||||
|
|
Loading…
Add table
Reference in a new issue