mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 16:29:30 +01:00
20 lines
469 B
Bash
Executable File
20 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
git_receive_app(){
|
|
declare desc="git receive-app plugin trigger"
|
|
local trigger="git_receive_app"
|
|
local APP="$1"; local REV="$2"
|
|
|
|
# Don't trigger git build if there is no git repository.
|
|
if [[ ! -d "$DOKKU_ROOT/$APP/refs" ]]; then
|
|
true
|
|
else
|
|
# shellcheck disable=SC2086
|
|
dokku git-build $APP $REV
|
|
fi
|
|
}
|
|
|
|
git_receive_app "$@"
|