Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Tue Sep 19 01:23:08 2023 -0300
Parent: c1e6214
Updated scripts
diff --git a/post-receive-scripts b/post-receive-scripts
index 192d674..3f8c439 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -16,8 +16,10 @@ do
then
echo "Ref $ref received. Deploying ${BRANCH} branch on server..."
TMP="$(mktemp)"
- git --work-tree="$tmp" checkout -f ${BRANCH}
+ git --work-tree="$TMP" checkout -f ${BRANCH}
cp "$TMP/post-receive-scripts" "./hooks/post-receive"
+ cp "$TMP/post-receive" "../web/hooks/post-receive"
+ cp "$TMP/post-receive" "../server/hooks/post-receive"
else
echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server."
fi