mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 12:12:08 +01:00
23 lines
421 B
Bash
Executable File
23 lines
421 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
tar_deploy_source() {
|
|
declare desc="tar deploy-source plugin trigger"
|
|
declare trigger="tar_deploy_source"
|
|
declare APP="$1"
|
|
local STDIN
|
|
STDIN=$(cat)
|
|
|
|
# bail if another source is detected
|
|
if [[ -n "$STDIN" ]]; then
|
|
echo "$STDIN"
|
|
return
|
|
fi
|
|
|
|
if [[ -f "$DOKKU_ROOT/$APP/src.tar" ]]; then
|
|
echo "tar"
|
|
fi
|
|
}
|
|
|
|
tar_deploy_source "$@"
|