34 lines
968 B
Makefile
34 lines
968 B
Makefile
version := `cat version`
|
|
|
|
# tailwind:
|
|
# tailwindcss --input tailwind/app.css --output static/app-{{version}}.css
|
|
# tailwindcss --input tailwind/app.css --output static/app.css
|
|
|
|
update-uv-installer:
|
|
[ -d container ] || mkdir container
|
|
curl -LsSf https://astral.sh/uv/install.sh > container/install-uv.sh
|
|
chmod +x container/install-uv.sh
|
|
|
|
lock: lock-requirements
|
|
lock-requirements:
|
|
uv lock --script linker.py
|
|
uv export --script linker.py > requirements.txt
|
|
|
|
|
|
build: build-container
|
|
build-container:
|
|
podman build -t registry.wayl.one/linker:latest -t registry.wayl.one/linker:{{version}} -f container/Containerfile .
|
|
|
|
run: run-container
|
|
|
|
run-container:
|
|
podman run -p 8000:8000 registry.wayl.one/linker:{{version}}
|
|
|
|
deploy: deploy-container
|
|
push-container: deploy-container
|
|
deploy-container:
|
|
podman push registry.wayl.one/linker:latest
|
|
podman push registry.wayl.one/linker:{{version}}
|
|
|
|
run-local:
|
|
uv run --script linker.py
|