mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
chore: deprecate the builder-specific post-build-* triggers in favor of a global post-build trigger
The pre-build trigger takes a `BUILDER_TYPE` parameter, allowing folks to perform specific actions as needed.
This commit is contained in:
@@ -39,7 +39,11 @@ trigger-builder-lambda-builder-build() {
|
||||
# ensure we have a port mapping
|
||||
plugn trigger ports-configure "$APP"
|
||||
plugn trigger ports-set-detected "$APP" "http:$(plugn trigger ports-get-property "$APP" proxy-port):5000"
|
||||
plugn trigger post-build-lambda "$APP"
|
||||
if fn-plugn-trigger-exists "post-build-lambda"; then
|
||||
dokku_log_warn "Deprecated: please upgrade plugin to use 'post-build' plugin trigger instead of post-build-lambda"
|
||||
plugn trigger post-build-lambda "$APP"
|
||||
fi
|
||||
plugn trigger post-build "$BUILDER_TYPE" "$APP" "$SOURCECODE_WORK_DIR"
|
||||
}
|
||||
|
||||
trigger-builder-lambda-builder-build "$@"
|
||||
|
||||
Reference in New Issue
Block a user