feat: add support for nixpacks as a builder

Closes #5338
This commit is contained in:
Jose Diaz-Gonzalez
2023-08-27 12:36:50 -04:00
parent 76a979e139
commit fe6a0f796e
21 changed files with 648 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-nixpacks-post-delete() {
declare desc="destroys the builder-nixpacks properties for a given app"
declare trigger="post-delete"
declare APP="$1"
fn-plugin-property-destroy "builder-nixpacks" "$APP"
rm -rf "${DOKKU_LIB_ROOT}/data/builder-nixpacks/$APP"
}
trigger-builder-nixpacks-post-delete "$@"