Skip to content

Commit

Permalink
Include the git tag 'VERSION' in logging (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljdelight authored Feb 16, 2024
1 parent 34778ca commit d76f441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN \

WORKDIR /maproulette-api
RUN \
echo "\n\nBUILDING API COMMIT $(git rev-parse HEAD)\n\n" && \
echo "\n\nBUILDING API VERSION=${VERSION} COMMIT=$(git rev-parse HEAD)\n\n" && \
sbt evicted && \
sbt clean compile dist && \
unzip -d / target/universal/MapRouletteAPI.zip
Expand Down
2 changes: 1 addition & 1 deletion api/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -exuo pipefail

export VERSION=$1
# Git branches may contains forward slashes and that don't work with docker. Replace any slashes with a dash.
# Git branches may contains forward slashes and that doesn't work with container image tagging. Replace any slashes with a dash.
export IMAGE_TAG=${VERSION//\//-}
git=(${2//:/ })
CACHEBUST=${VERSION}
Expand Down

0 comments on commit d76f441

Please sign in to comment.