From 35bd6268308787b720f70ce518f59440b27ebc45 Mon Sep 17 00:00:00 2001 From: Alex Myasoedov Date: Mon, 20 Nov 2017 17:48:14 -0500 Subject: [PATCH] Make file versioning --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)