This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-playbook/pre-deploy

19 lines
517 B
Plaintext
Raw Normal View History

2020-03-19 00:43:41 +00:00
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
2020-03-19 22:45:06 +00:00
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
2020-03-19 22:42:53 +00:00
dokku-ansible-playbook-pre-deploy() {
declare APP="$1"
declare PLAYBOOK="$DOKKU_LIB_ROOT/data/ansible/$APP/pre-deploy.yml"
declare REQUIREMENTS="$DOKKU_LIB_ROOT/data/ansible/$APP/requirements.yml"
2020-03-19 00:43:41 +00:00
2020-03-19 22:42:53 +00:00
. $(dirname "$0")/functions
2020-03-19 22:29:59 +00:00
2020-03-19 22:42:53 +00:00
dokku_col_log_info1_quiet "Running pre-deploy ansible playbook"
2020-03-19 23:11:35 +00:00
run_playbook "$APP" "$PLAYBOOK" "$REQUIREMENTS"
2020-03-19 22:42:53 +00:00
}
dokku-ansible-playbook-pre-deploy "$@"