Browse Source

Ensure production deployment is done from master

master
Simon Bruder 8 months ago
parent
commit
cb6ccc54a4
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
  1. 4
      deploy.sh

4
deploy.sh

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

Loading…
Cancel
Save