Ensure production deployment is done from master

master
Simon Bruder 2022-01-28 14:06:25 +01:00
parent d44a26e590
commit cb6ccc54a4
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ case "$target" in
directory="staging"
;;
"production")
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then
echo "Not on master, refusing to deploy to production."
exit 1
fi
nix_package="schulischer-schabernack"
directory="production"
;;