webhook deploy install

This commit is contained in:
2021-05-18 13:58:50 +02:00
parent 198036de8d
commit 0af76cdd60
3 changed files with 112 additions and 0 deletions

7
assets/webhook-deploy.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bach
# update bare repos
git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod
# deploy prod
cd www/DOMAIN/app
./deploy.sh

10
assets/webhook.service Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=Small server for creating HTTP endpoints (hooks)
Documentation=https://github.com/adnanh/webhook/
[Service]
ExecStart=webhook -hooks /etc/webhooks.conf -verbose -nopanic -hotreload
Restart=always
[Install]
WantedBy=multi-user.target