aboutsummaryrefslogtreecommitdiff
path: root/bin/hook/post-receive
blob: 63ff0559f28714f361307fbbfd8a1eb30fefc0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

#
# Example post-receive hook for server-side git repository.
#
# Note: you'll need to populate HOOK_URL and HOOK_HMAC_KEY
#

# set sane error mode
set -eu

# set env vars
export HOOK_URL='https://example.com/hooks/deploy'
export HOOK_HMAC_KEY="omitted" 

# trigger webhook
exec /data/www/pablotron.org/data/git/pablotron.org/bin/hook/fire.rb