Skip to content

Commit

Permalink
chore(build): add version
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Jan 3, 2021
1 parent f965fae commit 8032cc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
DIST := dist
SERVICE ?= backup

DOCKER_ACCOUNT := appleboy
GOFMT ?= gofmt "-s"
SHASUM ?= shasum -a 256
GO ?= go
Expand All @@ -23,7 +22,7 @@ else
VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
endif

LDFLAGS ?= -X cmd/backup/main.Version=$(VERSION)
LDFLAGS ?= -X main.Version=$(VERSION)

all: build

Expand Down

0 comments on commit 8032cc3

Please sign in to comment.