Skip to content

Commit 5e417b3

Browse files
add missing build info to docker image
1 parent 8efe9c4 commit 5e417b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test-docker:
7777
docker run --rm -v "${GOPATH}":/go -w /go/src/creativeprojects/resticprofile golang:${GO_VERSION} $(GOTEST) -v $(TESTS)
7878

7979
build-docker: clean
80-
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux $(GOBUILD) -v -o ${BUILD}$(BINARY) .
80+
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux $(GOBUILD) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'" -o ${BUILD}$(BINARY) .
8181
curl -LO https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2
8282
bunzip2 restic_${RESTIC_VERSION}_linux_amd64.bz2
8383
mv restic_${RESTIC_VERSION}_linux_amd64 ${BUILD}restic

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
// These fields are populated by the goreleaser build
2323
var (
24-
version = "0.7.2-dev"
24+
version = "0.8.0"
2525
commit = ""
2626
date = ""
2727
builtBy = ""

0 commit comments

Comments
 (0)