mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
Fix version & date in Docker containers for #64
This commit is contained in:
@@ -15,11 +15,12 @@ apk add --no-cache --virtual .build-deps git
|
|||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
export GOBIN="$bindir"
|
export GOBIN="$bindir"
|
||||||
builddate="$(date -Iseconds)"
|
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
go clean
|
builddate="$(date -Iseconds)"
|
||||||
|
buildver="$(git describe --tags)"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
|
go clean
|
||||||
echo "### Fetching Dependencies"
|
echo "### Fetching Dependencies"
|
||||||
go get -t -v ./...
|
go get -t -v ./...
|
||||||
|
|
||||||
@@ -27,7 +28,7 @@ echo "### Testing Inbucket"
|
|||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
echo "### Building Inbucket"
|
echo "### Building Inbucket"
|
||||||
go build -o inbucket -ldflags "-X 'main.BUILDDATE=$builddate'" -v .
|
go build -o inbucket -ldflags "-X 'main.version=$buildver' -X 'main.date=$builddate'" -v .
|
||||||
|
|
||||||
echo "### Installing Inbucket"
|
echo "### Installing Inbucket"
|
||||||
set -x
|
set -x
|
||||||
|
|||||||
Reference in New Issue
Block a user