add exit for custom deploy scripts again but document hint in env template
This commit is contained in:
parent
54624241bd
commit
95fd9386be
@ -19,5 +19,8 @@ HUGO_GIT_URL=git@codeberg.org:eotl/example-repo.git
|
|||||||
#SECRET_DEPLOY_KEY_VERSION=v1
|
#SECRET_DEPLOY_KEY_VERSION=v1
|
||||||
|
|
||||||
# Custom deployment script
|
# 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_ENABLED=1
|
||||||
#CUSTOM_DEPLOY_SCRIPT=path/customscript.sh
|
#CUSTOM_DEPLOY_SCRIPT=path/customscript.sh
|
||||||
|
@ -32,6 +32,7 @@ fi
|
|||||||
if [ "$CUSTOM_DEPLOY_ENABLED" == "1" ]; then
|
if [ "$CUSTOM_DEPLOY_ENABLED" == "1" ]; then
|
||||||
echo "◆ Executing custom deploy script: $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT"
|
echo "◆ Executing custom deploy script: $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT"
|
||||||
bash $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT
|
bash $HUGO_WORKING_DIR/$CUSTOM_DEPLOY_SCRIPT
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "◆ Install or update Hugo Modules"
|
echo "◆ Install or update Hugo Modules"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user