Fix image tag name #841

Merged
dboreham merged 1 commits from dboreham/fix-remote-image-tags into main 2024-06-13 14:32:27 +00:00
Showing only changes of commit bf1eccd486 - Show all commits

View File

@ -72,7 +72,7 @@ def remote_tag_for_image_unique(image: str, remote_repo_url: str, deployment_id:
(image_name, image_version) = image_name_with_version.split(":")
if image_version == "local":
# Salt the tag with part of the deployment id to make it unique to this deployment
deployment_tag = deployment_id[0, 7]
deployment_tag = deployment_id[-8:]
return f"{remote_repo_url}/{image_name}:deploy-{deployment_tag}"
else:
return image