mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-24 06:16:25 +03:00
30 lines
473 B
Makefile
30 lines
473 B
Makefile
.PHONY: deps dev build image clean
|
|
|
|
GOCMD=go
|
|
IMAGE := r.mills.io/prologic/zs
|
|
TAG := latest
|
|
|
|
all: build
|
|
|
|
deps:
|
|
@$(GOCMD) install go.mills.io/zs@latest
|
|
@$(GOCMD) install github.com/tdewolff/minify/v2/cmd/minify@latest
|
|
|
|
dev : DEBUG=1
|
|
dev : build
|
|
@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
|