change: add HUGO_DEST and remove metrics
Some checks failed
Deploy / Deploy (push) Failing after 3s

This commit is contained in:
Vezpi 2025-06-02 13:04:51 +00:00
parent 4d1a265b9d
commit e835486965

View File

@ -6,12 +6,11 @@ REPO_URL="${REPO_URL:-https://git.vezpi.me/Vezpi/blog.git}"
BRANCH="${BRANCH:-preview}" BRANCH="${BRANCH:-preview}"
CLONE_DIR="${CLONE_DIR:-/blog}" CLONE_DIR="${CLONE_DIR:-/blog}"
echo "Cloning $REPO_URL (branch: $BRANCH)..." echo "- Cloning $REPO_URL (branch: $BRANCH)..."
git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"
echo "Building site with Hugo $HUGO_VERSION..." echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..."
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings --templateMetrics --templateMetricsHints hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings
echo "- Starting Nginx..."
echo "Starting Nginx..."
exec nginx -g 'daemon off;' exec nginx -g 'daemon off;'