aboutsummaryrefslogtreecommitdiff
path: root/bin/hook
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-17 17:22:39 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-17 17:22:39 -0400
commit04aa050632c246464c7e7ef3888a4d3b2ffafcce (patch)
tree28687ee9e63d93c8e1a933a8d25a3ce69a6879e1 /bin/hook
parent6a2e555a0ae7a8cfb9225d1004b578eb7b715d3b (diff)
downloadpablotron.org-04aa050632c246464c7e7ef3888a4d3b2ffafcce.tar.bz2
pablotron.org-04aa050632c246464c7e7ef3888a4d3b2ffafcce.zip
bin/hook: s/pablotron.org/example.com/
Diffstat (limited to 'bin/hook')
-rw-r--r--bin/hook/etc/webhook.conf10
-rwxr-xr-xbin/hook/post-receive4
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/hook/etc/webhook.conf b/bin/hook/etc/webhook.conf
index 95c4ca5..34c2929 100644
--- a/bin/hook/etc/webhook.conf
+++ b/bin/hook/etc/webhook.conf
@@ -1,6 +1,6 @@
[{
- "id": "deploy-pablotron-org",
- "execute-command": "/data/www/pablotron.org/bin/hook/deploy.rb",
+ "id": "deploy",
+ "execute-command": "/data/www/example.com/git/bin/hook/deploy.rb",
"pass-arguments-to-command": [{
"source": "payload",
@@ -10,15 +10,15 @@
"pass-environment-to-command": [{
"source": "string",
"envname": "DEPLOY_HTDOCS_PATH",
- "name": "/data/www/pablotron.org/htdocs"
+ "name": "/data/www/example.com/htdocs"
}, {
"source": "string",
"envname": "DEPLOY_REPO_DIR",
- "name": "/data/www/pablotron.org/data/git/pablotron.org"
+ "name": "/data/www/example.com/git"
}, {
"source": "string",
"envname": "DEPLOY_BUILDS_DIR",
- "name": "/data/www/pablotron.org/data/builds"
+ "name": "/data/www/example.com/builds"
}],
"trigger-rule": {
diff --git a/bin/hook/post-receive b/bin/hook/post-receive
index 63ff055..a3067b8 100755
--- a/bin/hook/post-receive
+++ b/bin/hook/post-receive
@@ -13,5 +13,5 @@ set -eu
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
+# trigger webhook request
+exec /data/www/example.com/git/bin/hook/fire.rb