27 lines
421 B
Makefile
27 lines
421 B
Makefile
HEAD=$(shell git rev-parse --short HEAD)
|
|
CTNAME:=git.jmbit.de/jmb/www-jmbit-de
|
|
|
|
all: hugo container
|
|
|
|
dev:
|
|
hugo server -D
|
|
|
|
hugo:
|
|
hugo --minify
|
|
|
|
webserver:
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app .
|
|
|
|
container:
|
|
podman build -t $(CTNAME):latest -t $(CTNAME):$(HEAD) .
|
|
|
|
nopub: hugo webserver container
|
|
podman run --rm -p8080:80 $(CTNAME)
|
|
|
|
run:
|
|
podman run --rm -p8080:80 $(CTNAME)
|
|
|
|
clean:
|
|
rm -rf public
|
|
|