zs-starter-template/Makefile

29 lines
406 B
Makefile
Raw Normal View History

.PHONY: deps dev build image clean
GOCMD=go
IMAGE := r.mills.io/prologic/zs
TAG := latest
all: build
deps:
2023-03-12 10:44:34 +03:00
@$(GOCMD) install go.mills.io/zs@latest
dev : DEBUG=1
dev : build
2023-03-12 10:44:34 +03:00
@zs serve
build:
@zs build
ifeq ($(PUBLISH), 1)
image:
@docker buildx build --platform linux/amd64,linux/arm64 --push -t $(IMAGE):$(TAG) .
else
image:
@docker build -t $(IMAGE):$(TAG) .
endif
clean:
@git clean -f -d -X