Use env vars correctly

This commit is contained in:
Luke Murphy
2020-03-19 02:19:57 +01:00
parent 9ae81edebc
commit 90d4afe838
3 changed files with 15 additions and 12 deletions

View File

@ -2,8 +2,10 @@
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
PLAYBBOOK=".ansible/post-deploy.yml"
APP="$1"
PLAYBOOK="$DOKKU_ROOT/$APP/ansible/post-deploy.yml"
REQUIREMENTS="$DOKKU_ROOT/$APP/ansible/requirements.yml"
echo "-----> Running post-deploy ansible playbook"
. $(dirname "$0")/functions
run_playbook "$PLAYBOOK"
run_playbook "$PLAYBOOK" "$REQUIREMENTS"