mirror of
http://gogs.blitter.com:3000/Russtopia/bacillus.git
synced 2024-06-15 13:46:40 +00:00
16 lines
564 B
Bash
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
|
|
|