aboutsummaryrefslogtreecommitdiff
path: root/bin/hook/etc/webhook.conf
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-17 16:44:32 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-17 16:44:32 -0400
commite2622959a2234c7679c5c3eb18ba8642a1ce3a13 (patch)
treeb2dcb9c60428c6300bfee80ede56327053bf9a71 /bin/hook/etc/webhook.conf
parent031056a3d398daa007258664f67fb90f77edba8b (diff)
downloadpablotron.org-e2622959a2234c7679c5c3eb18ba8642a1ce3a13.tar.bz2
pablotron.org-e2622959a2234c7679c5c3eb18ba8642a1ce3a13.zip
add bin/hook
Diffstat (limited to 'bin/hook/etc/webhook.conf')
-rw-r--r--bin/hook/etc/webhook.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/bin/hook/etc/webhook.conf b/bin/hook/etc/webhook.conf
new file mode 100644
index 0000000..95c4ca5
--- /dev/null
+++ b/bin/hook/etc/webhook.conf
@@ -0,0 +1,34 @@
+[{
+ "id": "deploy-pablotron-org",
+ "execute-command": "/data/www/pablotron.org/bin/hook/deploy.rb",
+
+ "pass-arguments-to-command": [{
+ "source": "payload",
+ "name": "time"
+ }],
+
+ "pass-environment-to-command": [{
+ "source": "string",
+ "envname": "DEPLOY_HTDOCS_PATH",
+ "name": "/data/www/pablotron.org/htdocs"
+ }, {
+ "source": "string",
+ "envname": "DEPLOY_REPO_DIR",
+ "name": "/data/www/pablotron.org/data/git/pablotron.org"
+ }, {
+ "source": "string",
+ "envname": "DEPLOY_BUILDS_DIR",
+ "name": "/data/www/pablotron.org/data/builds"
+ }],
+
+ "trigger-rule": {
+ "match": {
+ "type": "payload-hmac-sha256",
+ "secret": "omitted",
+ "parameter": {
+ "source": "header",
+ "name": "X-Hub-Signature"
+ }
+ }
+ }
+}]