jean-cloud-services/services/hugo/deploy_user.sh

17 lines
310 B
Bash
Raw Normal View History

2024-01-02 16:50:14 +00:00
#!/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
2024-02-22 00:43:01 +00:00
# Invalid cache
#rm -rf "/tmp/hugo_cache_$USER"
2024-01-02 16:50:14 +00:00
# Build website
2024-02-22 00:43:01 +00:00
HUGO_CACHEDIR="/tmp/hugo_cache_$USER" hugo