From cf70f57d7fd883dc9d897fa1db5002b386ca57eb Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 13 Apr 2020 09:24:02 +0200 Subject: [PATCH] Add pre-deploy/post-deploy place holders --- functions | 10 ++++++++++ post-deploy | 8 ++++++++ pre-deploy | 8 ++++++++ 3 files changed, 26 insertions(+) create mode 100755 post-deploy create mode 100755 pre-deploy 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 "$@"