Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit 35bd626

Browse files
committed
Make file versioning
1 parent 74e9462 commit 35bd626

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
GIT_SUMMARY := $(shell git describe --tags --dirty --always)
12
REPO=msoedov/hacker-slides
23

34
default: repo
45

56
repo:
6-
@echo $(REPO)
7+
@echo $(REPO):$(GIT_SUMMARY)
78

89
build:
910
@GOOS=linux CGO_ENABLE=0 go build main.go
10-
@docker build -t $(REPO) .
11+
@docker build -t $(REPO):$(GIT_SUMMARY) .
1112

1213
push:
13-
@docker push $(REPO)
14+
@docker push $(REPO):$(GIT_SUMMARY)

0 commit comments

Comments
 (0)