This commit is contained in:
parent
4d1a265b9d
commit
e835486965
@ -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;'
|
Loading…
x
Reference in New Issue
Block a user