17 lines
350 B
Bash
17 lines
350 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
BUILD_DIR="public"
|
|
PREV_DIR="public.prev"
|
|
|
|
echo "[build] Hugo build starting..."
|
|
docker compose run --rm build
|
|
|
|
if [ ! -f "$BUILD_DIR/index.html" ]; then
|
|
echo "[build] ERROR: build failed — no index.html in $BUILD_DIR"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[build] Build complete — $BUILD_DIR ready"
|