This commit is contained in:
2021-05-12 11:31:55 +02:00
parent 918220ba07
commit cecb09a12e
8 changed files with 182 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
[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

View File

@@ -0,0 +1,3 @@
- id: deploy-app-enfrancais
execute-command: "/root/deploy-app-enfrancais-hook.sh"
command-working-directory: "/home/appdev/"

View File

@@ -0,0 +1,9 @@
#!/bin/sh
# $cwd is defined in webhook conf
# update bare repos
git --git-dir=git-repositories/app.enfrancais.fr.git fetch origin prod:prod
# deploy prod
cd www/enfrancais.fr/app
./deploy.sh