2017-11-20 23:48:14 +01:00
|
|
|
GIT_SUMMARY := $(shell git describe --tags --dirty --always)
|
2017-02-08 02:02:35 +01:00
|
|
|
REPO=msoedov/hacker-slides
|
|
|
|
|
2017-02-08 02:06:16 +01:00
|
|
|
default: repo
|
|
|
|
|
|
|
|
repo:
|
2018-01-19 02:27:07 +01:00
|
|
|
@echo $(REPO):$(GIT_SUMMARY)
|
2017-02-08 02:02:35 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
@GOOS=linux CGO_ENABLE=0 go build main.go
|
2017-11-20 23:48:14 +01:00
|
|
|
@docker build -t $(REPO):$(GIT_SUMMARY) .
|
2018-01-19 02:32:45 +01:00
|
|
|
@docker tag $(REPO):$(GIT_SUMMARY) $(REPO)
|
2017-02-08 02:02:35 +01:00
|
|
|
|
|
|
|
push:
|
2017-11-20 23:48:14 +01:00
|
|
|
@docker push $(REPO):$(GIT_SUMMARY)
|
2018-01-19 02:30:13 +01:00
|
|
|
@docker push $(REPO)
|