debion-web-server/assets/webhook-deploy.sh

9 lines
192 B
Bash

#!/bin/bash
# update bare repos
echo "Updating bare repos"
su -c "git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod" USER
# deploy prod
cd www/DOMAIN/
su -c "./deploy.sh" USER