diff --git a/Makefile b/Makefile index 6acc056..9fd568b 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ +GIT_SUMMARY := $(shell git describe --tags --dirty --always) REPO=msoedov/hacker-slides default: repo repo: - @echo $(REPO) + @echo $(REPO):$(GIT_SUMMARY) build: @GOOS=linux CGO_ENABLE=0 go build main.go - @docker build -t $(REPO) . + @docker build -t $(REPO):$(GIT_SUMMARY) . push: - @docker push $(REPO) + @docker push $(REPO):$(GIT_SUMMARY)