blender-id/deploy.sh
Francesco Siddi fbc0dc6636 Deploy: Add deploy.sh
A simple utility that calls the Ansible deployment playbook.
2023-07-08 12:05:35 +02:00

16 lines
241 B
Bash
Executable File

#!/bin/sh -ex
ENVIRONMENT=$1
if [ -z "$ENVIRONMENT" ]
then
echo "Usage: ./deploy.sh staging|production"
exit 1
fi
pushd playbooks
source .venv/bin/activate
./ansible.sh -i environments/$ENVIRONMENT deploy.yaml
deactivate
popd