1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Docker version will now fall back to commit if no tag

This commit is contained in:
James Hillyerd
2017-12-17 21:43:46 -08:00
parent 28b40eb94d
commit f4fadd7e44

View File

@@ -16,9 +16,10 @@ apk add --no-cache --virtual .build-deps git
# Setup
export GOBIN="$bindir"
cd "$srcdir"
# Fetch tags for describe
git fetch -t
builddate="$(date -Iseconds)"
buildver="$(git describe --tags)"
buildver="$(git describe --tags --always)"
# Build
go clean