Files
dokku/plugins/git/receive-app
2025-11-22 20:35:25 -05:00

20 lines
461 B
Bash
Executable File

#!/usr/bin/env bash
source "$PLUGIN_AVAILABLE_PATH/git/functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-git-receive-app() {
declare desc="builds the app from the local git repository"
declare trigger="receive-app"
if [[ "$DOKKU_REDIRECT_OUTPUT" != "true" ]]; then
export DOKKU_REDIRECT_OUTPUT=true
exec &> >(tee >(tee | logger -i -t "dokku-${DOKKU_PID}"))
fi
git_receive_app "$@"
return $?
}
trigger-git-receive-app "$@"