feat: allow users to enable herokuish usage on arm/arm64 platforms

While the majority of buildpacks do not work on non-amd64 platforms, this will at least allow developers the option to choose when to override this setting.
This commit is contained in:
Jose Diaz-Gonzalez committed 2022-11-24 14:43:47 -05:00
1 parent 25beb2af13
commit 1238c8d7e0
10 files changed
+352 -11

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/internal-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-herokuish-builder-herokuish-allowed() {
declare desc="builder-herokuish builder-herokuish-allowed plugin trigger"
declare trigger="builder-herokuish-allowed"
declare APP="$1"
if [[ "$(fn-builder-herokuish-computed-allowed "$APP")" != "true" ]]; then
return 1
fi
return 0
}
trigger-builder-herokuish-builder-herokuish-allowed "$@"