Add pre-deploy/post-deploy place holders

This commit is contained in:
Luke Murphy 2020-04-13 09:24:02 +02:00
parent 93c16dfdc3
commit cf70f57d7f
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 26 additions and 0 deletions

View File

@ -83,3 +83,13 @@ dokku-ansible-deploy-post-extract() {
fi fi
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"
}

8
post-deploy Executable file
View File

@ -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 "$@"

8
pre-deploy Executable file
View File

@ -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 "$@"