diff --git a/functions b/functions index f87acc9..076b0cd 100755 --- a/functions +++ b/functions @@ -83,3 +83,13 @@ dokku-ansible-deploy-post-extract() { fi fi } + +dokku-ansible-deploy-pre-deploy() { + # shellcheck disable=SC2034 + declare desc="run the pre-deploy hook to setup an app" +} + +dokku-ansible-deploy-post-deploy() { + # shellcheck disable=SC2034 + declare desc="run the post-deploy hook to finish an app setup" +} diff --git a/post-deploy b/post-deploy new file mode 100755 index 0000000..820f983 --- /dev/null +++ b/post-deploy @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x + +# shellcheck disable=SC1090 +source "$PLUGIN_AVAILABLE_PATH/ansible-deploy/functions" + +dokku-ansible-deploy-post-deploy "$@" diff --git a/pre-deploy b/pre-deploy new file mode 100755 index 0000000..0f6fa3e --- /dev/null +++ b/pre-deploy @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x + +# shellcheck disable=SC1090 +source "$PLUGIN_AVAILABLE_PATH/ansible-deploy/functions" + +dokku-ansible-deploy-pre-deploy "$@"