Trying to make a modern webpage. Tailwind is verbose but helps to do it faster. I will later make a better CSS. TODO: make dynamic links to package repository, exe, binaries... and add a better example
31 lines
773 B
Makefile
31 lines
773 B
Makefile
RELEASE=website
|
|
NS=katenary
|
|
|
|
build: dist chart
|
|
|
|
chart: dist
|
|
katenary convert -f -p deploy -i https://repo.katenary.io/Katenary/katenary/raw/branch/master/doc/docs/statics/icon.svg
|
|
|
|
dist: $(wildcard src/* compose.yaml)
|
|
rm -rf dist
|
|
podman run --rm -it -u $(id -u):$(id -g) -v $(PWD):/app -w /app node:alpine sh -c "yarn install && yarn parcel build --no-source-maps"
|
|
|
|
deploy: build
|
|
helm -n $(NS) upgrade --install $(RELEASE) ./chart/ -f override.yaml --create-namespace
|
|
sleep 1
|
|
kubectl -n $(NS) rollout restart deployment $(RELEASE)-server
|
|
|
|
venv:
|
|
python -m venv venv && venv/bin/pip install -U requests
|
|
|
|
add-redirect: venv
|
|
kubectl -n $(NS) apply -f <(./venv/bin/python add-domain.py)
|
|
|
|
serve:
|
|
$(MAKE) stop
|
|
rm -rf dist
|
|
podman compose up
|
|
|
|
stop:
|
|
-podman compose down
|