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:
Jose Diaz-Gonzalez
2023-08-19 12:13:40 -04:00
parent cdd5698db9
commit b19b409dd6
6 changed files with 67 additions and 22 deletions

View File

@@ -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 "$@"