Skip to content

Commit

Permalink
Merge pull request #58 from Jooho/fix_build_version
Browse files Browse the repository at this point in the history
fix build-version issue
  • Loading branch information
Jooho authored Nov 28, 2024
2 parents 5546bdf + 4c5b20a commit 876aa4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.konflux
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ RUN echo "$PNC_FILES_JSON" | jq -r '.[] | select(test("\\.zip$"))' | \
while read url; do wget --no-check-certificate "$url"; done && \
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 @@ -45,7 +49,6 @@ 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 876aa4f

Please sign in to comment.