22 lines
579 B
Fish
Executable file
22 lines
579 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
set -l container_name mo8it-com
|
|
|
|
mkdir -p ~/volumes/$container_name
|
|
|
|
podman run \
|
|
--rm \
|
|
--pull newer \
|
|
-v ~/code/mo8it.com:/volumes/src:Z \
|
|
-w /volumes/src \
|
|
docker.io/library/node:slim bash -c "npm add tailwindcss && npx tailwindcss -m -i input.css -o static/main.css"
|
|
|
|
podman run \
|
|
--rm \
|
|
--pull newer \
|
|
-v ~/code/mo8it.com:/volumes/src:Z,ro \
|
|
-v ~/volumes/$container_name:/volumes/output:Z \
|
|
-w /volumes/src \
|
|
ghcr.io/getzola/zola:v0.18.0 build -o /volumes/output/public -f
|
|
|
|
systemctl --user restart mo8it-com
|