mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 10:07:02 +00:00
Docker version will now fall back to commit if no tag
This commit is contained in:
@@ -16,9 +16,10 @@ apk add --no-cache --virtual .build-deps git
|
|||||||
# Setup
|
# Setup
|
||||||
export GOBIN="$bindir"
|
export GOBIN="$bindir"
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
# Fetch tags for describe
|
||||||
git fetch -t
|
git fetch -t
|
||||||
builddate="$(date -Iseconds)"
|
builddate="$(date -Iseconds)"
|
||||||
buildver="$(git describe --tags)"
|
buildver="$(git describe --tags --always)"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
go clean
|
go clean
|
||||||
|
|||||||
Reference in New Issue
Block a user