Ensure production deployment is done from master

This commit is contained in:
Simon Bruder 2022-01-28 14:06:25 +01:00
parent d44a26e590
commit cb6ccc54a4
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

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"
;;