From 213c0c5373b12634e495d5d176dafdb92b0fcd94 Mon Sep 17 00:00:00 2001 From: Bartosz Ciesielczyk <120648697+cbartoszDell@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:10:07 +0100 Subject: [PATCH] Update build.sh This change will provide a way to specify the tag for image, which will help in automating build process. --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index a9a53ac..663077b 100644 --- a/build.sh +++ b/build.sh @@ -45,12 +45,11 @@ function push_image { NAME=csi-unity IMAGE_NAME=${NAME}-${USER} -VERSION=$(date +%Y%m%d%H%M%S) BIN_DIR=bin BIN_NAME=${NAME} IMAGE_REPO=dellemc IMAGE_REPO_NAMESPACE=csi-unity -IMAGE_TAG=${VERSION} +IMAGE_TAG=${IMAGE_TAG:-$(date +%Y%m%d%H%M%S)} # Read options for param in $*; do