2023-01-06 20:56:00 +01:00
|
|
|
HEAD=$(shell git rev-parse --short HEAD)
|
2024-01-11 14:42:33 +01:00
|
|
|
CTNAME:=git.jmbit.de/jmb/www-jmbit-de
|
|
|
|
|
2024-11-26 09:09:05 +01:00
|
|
|
all: hugo webserver
|
2024-01-11 14:42:33 +01:00
|
|
|
|
2022-12-29 19:13:21 +01:00
|
|
|
dev:
|
|
|
|
hugo server -D
|
2024-01-11 14:42:33 +01:00
|
|
|
|
2023-01-29 19:12:57 +01:00
|
|
|
hugo:
|
2024-11-26 09:09:05 +01:00
|
|
|
hugo
|
2024-01-11 14:42:33 +01:00
|
|
|
|
|
|
|
webserver:
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app .
|
|
|
|
|
2022-12-29 19:13:21 +01:00
|
|
|
container:
|
2024-01-11 14:42:33 +01:00
|
|
|
podman build -t $(CTNAME):latest -t $(CTNAME):$(HEAD) .
|
2023-08-03 11:13:56 +02:00
|
|
|
|
2024-01-11 14:42:33 +01:00
|
|
|
run:
|
|
|
|
podman run --rm -p8080:80 $(CTNAME)
|
2022-12-29 19:13:21 +01:00
|
|
|
|
2023-01-06 20:56:00 +01:00
|
|
|
clean:
|
2023-02-05 16:09:53 +01:00
|
|
|
rm -rf public
|
2023-01-06 20:56:00 +01:00
|
|
|
|