forkattu lähteestä complotti/DossierServices
19 rivejä
401 B
Makefile
19 rivejä
401 B
Makefile
GIT_SUMMARY := $(shell git describe --tags --dirty --always)
|
|
REPO=msoedov/hacker-slides
|
|
|
|
default: repo
|
|
|
|
repo:
|
|
@echo $(REPO):$(GIT_SUMMARY)
|
|
|
|
build:
|
|
@GOOS=linux CGO_ENABLE=0 go build main.go
|
|
@docker build -t $(REPO):$(GIT_SUMMARY) .
|
|
@docker tag $(REPO):$(GIT_SUMMARY) $(REPO)
|
|
|
|
push:
|
|
@docker push $(REPO):$(GIT_SUMMARY)
|
|
@docker push $(REPO)
|
|
|
|
r:
|
|
@docker run -it -p 8080:8080 $(REPO):$(GIT_SUMMARY)
|