summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/olamic-githook-post-receive8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/olamic-githook-post-receive b/examples/olamic-githook-post-receive
index 3135d0d..4c71703 100755
--- a/examples/olamic-githook-post-receive
+++ b/examples/olamic-githook-post-receive
@@ -11,13 +11,9 @@ while read OLD NEW REF; do
11 OLAMIC_EMAIL="$(git show --no-patch --format=%ae "$NEW")" 11 OLAMIC_EMAIL="$(git show --no-patch --format=%ae "$NEW")"
12 echo -n "Enqueuing olamic run for $REF: " 12 echo -n "Enqueuing olamic run for $REF: "
13 if [[ "$OLAMIC_QUEUE_HOST" == "" ]]; then 13 if [[ "$OLAMIC_QUEUE_HOST" == "" ]]; then
14 olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" <<END 14 git show "$NEW":olamic-run | olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL"
15. ./olamic-run
16END
17 else 15 else
18 ssh "$OLAMIC_QUEUE_HOST" olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL" <<END 16 git show "$NEW":olamic-run | ssh "$OLAMIC_QUEUE_HOST" olamic-enqueue "$OLAMIC_QUEUE_DIR" "$OLAMIC_GIT_REPO" "$NEW" GIT_REF="$REF" OLAMIC_EMAIL="$OLAMIC_EMAIL"
19. ./olamic-run
20END
21 fi 17 fi
22 fi 18 fi
23done 19done