main_server/containers/yinghong-massage/yinghong-massage.fish
2024-08-16 00:08:24 +02:00

22 lines
616 B
Fish
Executable file

#!/usr/bin/env fish
set -l container_name yinghong-massage-de
mkdir -p ~/volumes/$container_name
podman run \
--rm \
--pull newer \
-v ~/code/yinghong-massage.de:/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/yinghong-massage.de:/volumes/src:Z,ro \
-v ~/volumes/$container_name:/volumes/output:Z \
-w /volumes/src \
ghcr.io/getzola/zola:v0.19.2 build -o /volumes/output/public -f
systemctl --user restart yinghong-massage