diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e0012d4..8178a50 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -14,6 +14,9 @@ if [ "$BRANCH" = "preview" ]; then DRAFTS="--buildDrafts --buildFuture" fi +# Clean blog dir +rm -rf "$CLONE_DIR" + # Clone repo echo "- Cloning $REPO_URL (branch: $BRANCH)..." git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"