feat: implement builds:output

This still needs tightening to ensure we don't trigger this for normal git plugin commands - as well as anything that triggers a deploy - but works in a pinch.
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-14 08:00:26 -04:00
parent 99855ae9f8
commit 7d00e2c422
3 changed files with 28 additions and 11 deletions

4
dokku
View File

@@ -188,6 +188,10 @@ execute_dokku_cmd() {
set -- "$PLUGIN_CMD" "$@"
fi
if [[ $PLUGIN_NAME =~ git-* ]] || [[ $PLUGIN_NAME =~ git:* ]]; then
exec &> >(tee >(tee | logger -i -t "dokku-${DOKKU_PID}"))
fi
if [[ -x $PLUGIN_ENABLED_PATH/$PLUGIN_NAME/subcommands/default ]]; then
"$PLUGIN_ENABLED_PATH/$PLUGIN_NAME/subcommands/default" "$@"
implemented=1