mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 13:15:19 +02:00
Adds typed JSON build records under data/builds/<app>/<build-id>.{json,log} keyed on a stable base36 ULID-style DOKKU_BUILD_ID generated for every deploy. The new commands surface that history (builds:list, builds:info, builds:prune) and an operator-configurable retention via builds:set retention. The existing builds:cancel and builds:output now key on the build-id (with safe handling for already-finalized and abandoned records), and the per-build log file replaces journalctl as the durable source of truth for builds:output.
17 lines
348 B
Bash
Executable File
17 lines
348 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"
|
|
|
|
dokku_setup_build_capture "$1" "git-hook"
|
|
|
|
git_receive_app "$@"
|
|
return $?
|
|
}
|
|
|
|
trigger-git-receive-app "$@"
|