blob: 228a25c3f96a800e90ce66f30de11f282b916e89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
-include environ.inc
.PHONY: deps dev build install image release test clean
GOCMD=go
REGISTRY=<registry>
IMAGE=<image>
all: build
deps:
@$(GOCMD) install git.mills.io/prologic/zs@latest
@$(GOCMD) install git.mills.io/prologic/static@latest
dev : DEBUG=1
dev : build
@zs watch
build:
@zs build
ifeq ($(PUBLISH), 1)
image:
@docker build -t $(REGISTRY)/$(IMAGE) .
@docker push $(REGISTRY)/$(IMAGE)
else
image:
@docker build -t $(REGISTRY)/$(IMAGE) .
endif
clean:
@git clean -f -d -X
|