Ensure production deployment is done from master
This commit is contained in:
parent
d44a26e590
commit
cb6ccc54a4
|
@ -9,6 +9,10 @@ case "$target" in
|
||||||
directory="staging"
|
directory="staging"
|
||||||
;;
|
;;
|
||||||
"production")
|
"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"
|
nix_package="schulischer-schabernack"
|
||||||
directory="production"
|
directory="production"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue