bacillus/example_workdir/hkexsh_post-receive.sample
Russ Magee cbc6dfa441 Updated README.md and post-receive hook example
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-09-13 00:20:42 -07:00

16 lines
564 B
Bash

#!/usr/bin/env bash
"/home/git/go/src/github.com/gogs/gogs/gogs" hook --config='/home/git/go/src/github.com/gogs/gogs/custom/conf/app.ini' post-receive
read old new ref
echo "** push hook"
echo "** old: ${old}"
echo "** new: ${new}"
echo "** ref: ${ref}"
## NOTE In my setup bacillus is behind a reverse proxy, 'bacillus.blitter.com'
## and therefore must be addressed via https://bacillus.blitter.com/
## though it runs http:// on port 9990.
/usr/bin/curl -s "https://bacillus.blitter.com/onPush-hkexsh-build?ref=${ref}&old=${old}&new=${new}" >/dev/null 2>&1