jean-cloud-services/services/hugo/deploy_user.sh
2024-01-02 17:50:14 +01:00

14 lines
259 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Update git repo
git_update.sh -d "$HTTP_DIR" -b "${GIT_SOURCE_BRANCH:-main}" "$GIT_SOURCE_REPO"
cd "$HTTP_DIR"
# Get remote content files
rclone_ncloud_publiclink.sh
# Build website
HUGO_CACHEDIR=/tmp/hugo_cache_$USER hugo