Skip to content

Commit

Permalink
build: use git describe to get branch reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed Jun 25, 2021
1 parent 10d60d9 commit 07f008e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
echo EXPOSR_BUILD_VERSION=$(git describe --tags --always --dirty 2> /dev/null || git rev-parse --short HEAD)
echo EXPOSR_BUILD_GIT_BRANCH=$(git branch --show-current)
echo EXPOSR_BUILD_GIT_BRANCH=$(git describe --all --always)
echo EXPOSR_BUILD_GIT_COMMIT=$(git rev-parse HEAD)
echo EXPOSR_BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo EXPOSR_BUILD_USER=$(id -u)
Expand Down

0 comments on commit 07f008e

Please sign in to comment.