add exit for custom deploy scripts again but document hint in env template

This commit is contained in:
stevensting 2025-02-09 12:36:30 +01:00
parent 54624241bd
commit 95fd9386be
2 changed files with 4 additions and 0 deletions

View File

@ -19,5 +19,8 @@ HUGO_GIT_URL=git@codeberg.org:eotl/example-repo.git
#SECRET_DEPLOY_KEY_VERSION=v1
# Custom deployment script
# place this in your HUGO_GIT_URL repository root
# attention: if you use this option you need to add the steps from deploy.sh.tmpl in your custom deploy script
# starting with "◆ Install or update Hugo Modules"
#CUSTOM_DEPLOY_ENABLED=1
#CUSTOM_DEPLOY_SCRIPT=path/customscript.sh

View File

@ -32,6 +32,7 @@ fi
if [ "$CUSTOM_DEPLOY_ENABLED" == "1" ]; then
echo "◆ Executing custom deploy script: $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT"
bash $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT
exit 0
fi
echo "◆ Install or update Hugo Modules"