From 6099865ea58f2a8d346ded41392a1252755e8ccc Mon Sep 17 00:00:00 2001
From: "S.P. Mohanty" <spmohanty91@gmail.com>
Date: Thu, 21 Mar 2024 16:35:10 +0000
Subject: [PATCH] use short hashes for tag name

---
 docker_run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker_run.sh b/docker_run.sh
index a93b850..7d503da 100755
--- a/docker_run.sh
+++ b/docker_run.sh
@@ -7,7 +7,7 @@
 # with the current directory mounted at /submission inside the container.
 
 # Step 1: Define the name of the Docker image.
-LAST_COMMIT_HASH=$(git rev-parse HEAD)
+LAST_COMMIT_HASH=$(git rev-parse --short HEAD)
 IMAGE_NAME="aicrowd/amazon-kddcup24-submission:${LAST_COMMIT_HASH}"
 
 # Step 2: Build the Docker image.
-- 
GitLab