From e44e7c94202645f791a0277c0ebacb21fa9cffe7 Mon Sep 17 00:00:00 2001 From: Jooho Lee Date: Thu, 28 Nov 2024 12:08:18 -0500 Subject: [PATCH] Revert "[Cherry-Pick] fix build-version issue" --- Dockerfile.konflux | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile.konflux b/Dockerfile.konflux index a4a1cb41..65624e70 100644 --- a/Dockerfile.konflux +++ b/Dockerfile.konflux @@ -13,10 +13,6 @@ RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y unz RUN cd ./cachi2/output/deps/generic && \ for file in *.zip; do unzip -d /root/ "$file"; done -# Assume that source code comes from a Git repository -RUN echo "$(date '+%Y%m%d')-$(git rev-parse HEAD | cut -c -5)" > target/dockerhome/build-version && \ - echo "$(git rev-parse HEAD)" > target/dockerhome/release && \ - echo "$(git branch --show-current|sed 's/^release-//g')-$(git branch --show-current)_$(date '+%Y%m%d')-$(git rev-parse HEAD | cut -c -5)" > target/dockerhome/version ############################################################################### #latest tag @@ -43,6 +39,7 @@ RUN sed -i 's:security.provider.12=SunPKCS11:#security.provider.12=SunPKCS11:g' COPY --from=stage root/target/dockerhome/ /opt/kserve/mmesh/ COPY --from=stage root/target/dockerhome/version /etc/modelmesh-version + # Make this the current directory when starting the container WORKDIR /opt/kserve/mmesh