Make file versioning
This commit is contained in:
parent
74e9462530
commit
35bd626830
1 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
@ -1,13 +1,14 @@
|
||||||
|
GIT_SUMMARY := $(shell git describe --tags --dirty --always)
|
||||||
REPO=msoedov/hacker-slides
|
REPO=msoedov/hacker-slides
|
||||||
|
|
||||||
default: repo
|
default: repo
|
||||||
|
|
||||||
repo:
|
repo:
|
||||||
@echo $(REPO)
|
@echo $(REPO):$(GIT_SUMMARY)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@GOOS=linux CGO_ENABLE=0 go build main.go
|
@GOOS=linux CGO_ENABLE=0 go build main.go
|
||||||
@docker build -t $(REPO) .
|
@docker build -t $(REPO):$(GIT_SUMMARY) .
|
||||||
|
|
||||||
push:
|
push:
|
||||||
@docker push $(REPO)
|
@docker push $(REPO):$(GIT_SUMMARY)
|
||||||
|
|
Loading…
Reference in a new issue