diff options
author | Paul Duncan <pabs@pablotron.org> | 2024-05-31 03:58:29 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2024-05-31 03:58:29 -0400 |
commit | dc68c42ce1b8efc1003137c08dd5961b93705684 (patch) | |
tree | cdcfef52b3a486165608d7faba369be884be906f /static/files/articles/site-backend/webhook.conf.txt | |
parent | 4ed5fcfcd1952f2f6f29a03fa565740beb815800 (diff) | |
download | pablotron.org-dc68c42ce1b8efc1003137c08dd5961b93705684.tar.bz2 pablotron.org-dc68c42ce1b8efc1003137c08dd5961b93705684.zip |
content/articles/site-backend.md: populate most of the content
Diffstat (limited to 'static/files/articles/site-backend/webhook.conf.txt')
-rw-r--r-- | static/files/articles/site-backend/webhook.conf.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/static/files/articles/site-backend/webhook.conf.txt b/static/files/articles/site-backend/webhook.conf.txt new file mode 100644 index 0000000..254155d --- /dev/null +++ b/static/files/articles/site-backend/webhook.conf.txt @@ -0,0 +1,34 @@ +[{ + "id": "deploy-pablotron-org", + "execute-command": "/data/www/pablotron.org/git/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/builds/current" + }, { + "source": "string", + "envname": "DEPLOY_REPO_DIR", + "name": "/data/www/pablotron.org/git" + }, { + "source": "string", + "envname": "DEPLOY_BUILDS_DIR", + "name": "/data/www/pablotron.org/builds" + }], + + "trigger-rule": { + "match": { + "type": "payload-hmac-sha256", + "secret": "(omitted)", + "parameter": { + "source": "header", + "name": "X-Hub-Signature" + } + } + } +}] |