2023-01-06 20:56:00 +01:00
|
|
|
HEAD=$(shell git rev-parse --short HEAD)
|
2022-12-29 19:13:21 +01:00
|
|
|
dev:
|
|
|
|
hugo server -D
|
2023-01-29 19:12:57 +01:00
|
|
|
hugo:
|
2022-12-29 19:13:21 +01:00
|
|
|
hugo
|
|
|
|
container:
|
2023-01-06 20:56:00 +01:00
|
|
|
podman build -t docker.io/jmbitci/www-jmbit-de:latest .
|
|
|
|
podman build -t docker.io/jmbitci/www-jmbit-de:$(HEAD) .
|
2022-12-29 19:13:21 +01:00
|
|
|
publish:
|
2023-01-06 20:56:00 +01:00
|
|
|
podman push docker.io/jmbitci/www-jmbit-de:latest
|
|
|
|
podman push docker.io/jmbitci/www-jmbit-de:$(HEAD)
|
2023-01-29 19:12:57 +01:00
|
|
|
nopub: hugo container
|
2023-01-06 20:56:00 +01:00
|
|
|
podman run --rm -p8080:80 docker.io/jmbitci/www-jmbit-de
|
2022-12-31 17:15:40 +01:00
|
|
|
|
|
|
|
rollout:
|
|
|
|
kubectl rollout restart deployment www-jmbit-de -n jmbit-web
|
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
|
|
|
|
2023-01-29 19:12:57 +01:00
|
|
|
all: hugo container publish
|
2022-12-29 19:13:21 +01:00
|
|
|
|
|
|
|
|