Skip to content

Commit c2f594d

Browse files
authored
use pipeline execution id instead of source version for initiator tagging (#4548)
1 parent 21699c4 commit c2f594d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def tag_image_with_initiator(image_tag):
654654
"""
655655
# Shorten huggingface name to avoid breaching 128 char tag limit
656656
initiator = os.getenv("CODEBUILD_INITIATOR", "").split("/")[-1].replace("huggingface", "hf")
657-
return f"{image_tag}-{initiator}-{os.getenv('CODEBUILD_RESOLVED_SOURCE_VERSION', '')[:7]}"
657+
return f"{image_tag}-{initiator}-{os.getenv('CODEPIPELINE_EXECUTION_ID', '')[:7]}"
658658

659659

660660
def append_tag(image_tag, append_str):

0 commit comments

Comments
 (0)