2
0
Derivar 0
internet-condominiale/Makefile
2019-06-13 13:29:15 +03:00

21 linhas
374 B
Makefile

GIT_SUMMARY := $(shell git describe --tags --dirty --always)
REPO=msoedov/hacker-slides
DOCKER_IMAGE := $(REPO):$(GIT_SUMMARY)
default: repo
repo:
@echo $(DOCKER_IMAGE)
build:
@docker build -t $(DOCKER_IMAGE) .
@docker tag $(DOCKER_IMAGE) $(REPO)
push:
@docker push $(DOCKER_IMAGE)
r:
@docker run -it -p 8080:8080 $(DOCKER_IMAGE)
release:
@make build
@make push