www-jmbit-de/Makefile

27 lines
421 B
Makefile
Raw Permalink Normal View History

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) .
2023-08-03 11:13:56 +02:00
nopub: hugo webserver container
podman run --rm -p8080:80 $(CTNAME)
2022-12-31 17:15:40 +01:00
run:
podman run --rm -p8080:80 $(CTNAME)
clean:
2023-02-05 16:09:53 +01:00
rm -rf public