From 95fd9386beb1572d3c6ea57dcc95b98bc0027f22 Mon Sep 17 00:00:00 2001 From: stevensting Date: Sun, 9 Feb 2025 12:36:30 +0100 Subject: [PATCH] add exit for custom deploy scripts again but document hint in env template --- .env.sample | 3 +++ deploy.sh.tmpl | 1 + 2 files changed, 4 insertions(+) diff --git a/.env.sample b/.env.sample index 99e8116..82e864e 100644 --- a/.env.sample +++ b/.env.sample @@ -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 diff --git a/deploy.sh.tmpl b/deploy.sh.tmpl index d8fd967..e29d249 100755 --- a/deploy.sh.tmpl +++ b/deploy.sh.tmpl @@ -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"