Skip to content

Commit

Permalink
Update path to version_data.py in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Feb 20, 2025
1 parent c4219a8 commit bc842e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ COPY --chown=gen3:gen3 . /${appname}

RUN poetry install -vv --without dev --no-interaction

RUN git config --global --add safe.directory /${appname} && COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" > /${appname}/version_data.py \
&& VERSION=`git describe --always --tags` && echo "VERSION=\"${VERSION}\"" >> /${appname}/version_data.py
RUN git config --global --add safe.directory ${appname} && COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" > ${appname}/version_data.py \
&& VERSION=`git describe --always --tags` && echo "VERSION=\"${VERSION}\"" >> ${appname}/version_data.py

# Final stage
FROM base
Expand Down
4 changes: 2 additions & 2 deletions sheepdog/version_data.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = "x.y.z"
COMMIT = "random"
VERSION = ""
COMMIT = ""

0 comments on commit bc842e3

Please sign in to comment.