diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 19cf767..85a5859 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,7 +9,7 @@ CLONE_DIR="${CLONE_DIR:-/blog}" DRAFTS="" # Add drafts for preview -if [ $BRANCH -eq "preview" ]; then +if [ $BRANCH == "preview" ]; then DRAFTS="--buildDrafts" fi @@ -19,7 +19,7 @@ git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_ # Generate static files with hugo echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..." -hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL "$URL" $DRAFTS --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings +hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" $DRAFTS --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings # Start nginx echo "- Starting Nginx..."