refactor: rename to deploy-source

This commit is contained in:
Jose Diaz-Gonzalez
2018-03-03 19:11:49 -05:00
parent 726c1571eb
commit 9a1dd41e9f
4 changed files with 14 additions and 14 deletions

22
plugins/git/deploy-source Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
git_deploy_source() {
declare desc="git deploy-source plugin trigger"
declare trigger="git_deploy_source"
declare APP="$1"
local STDIN
STDIN=$(cat)
# bail if another source is detected
if [[ -n "$STDIN" ]]; then
echo "$STDIN"
return
fi
if [[ -d "$DOKKU_ROOT/$APP/refs" ]]; then
echo "git"
fi
}
git_deploy_source "$@"