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 committed 2023-10-15 20:25:09 -04:00
1 parent cdd5698db9
commit b19b409dd6
6 files changed
+67 -22

No files matched your search

+5 -1
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 "$@"