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

docker: fix build for #79

- Build with Go 1.10
- install.sh: git fetch fails with ssh remotes, removed
This commit is contained in:
James Hillyerd
2018-03-10 12:45:56 -08:00
parent 0016c6d5df
commit 1f56e06fb9
2 changed files with 2 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
# Docker build file for Inbucket, see https://www.docker.io/
# Inbucket website: http://www.inbucket.org/
FROM golang:1.9-alpine
FROM golang:1.10-alpine
MAINTAINER James Hillyerd, @jameshillyerd
# Configuration (WORKDIR doesn't support env vars)

View File

@@ -16,8 +16,6 @@ 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 --always)"
@@ -30,7 +28,7 @@ echo "### Testing Inbucket"
go test ./...
echo "### Building Inbucket"
go build -o inbucket -ldflags "-X 'main.version=$buildver' -X 'main.date=$builddate'" -v .
go build -o inbucket -ldflags "-X 'main.version=$buildver' -X 'main.date=$builddate'" -v ./cmd/inbucket
echo "### Installing Inbucket"
set -x