Skip to content

Commit

Permalink
Revert "[Cherry-Pick] fix build-version issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooho authored Nov 28, 2024
1 parent 083e63f commit e44e7c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile.konflux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit e44e7c9

Please sign in to comment.