Merge pull request #5591 from dokku/josegonzalez-patch-1
Allow the herokuish builder to be detected when the computed allowed value is set not set to false
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/functions"
|
source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/functions"
|
||||||
|
source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/internal-functions"
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
[[ $DOKKU_TRACE ]] && set -x
|
[[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
@@ -10,7 +11,9 @@ trigger-builder-herokuish-builder-detect() {
|
|||||||
local ARCHITECTURE="$(dpkg --print-architecture 2>/dev/null || true)"
|
local ARCHITECTURE="$(dpkg --print-architecture 2>/dev/null || true)"
|
||||||
|
|
||||||
if [[ "$ARCHITECTURE" == "armhf" ]] || [[ "$ARCHITECTURE" == "arm64" ]]; then
|
if [[ "$ARCHITECTURE" == "armhf" ]] || [[ "$ARCHITECTURE" == "arm64" ]]; then
|
||||||
return
|
if [[ "$(fn-builder-herokuish-computed-allowed "$APP")" != "true" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if fn-has-buildpacks-file "$SOURCECODE_WORK_DIR"; then
|
if fn-has-buildpacks-file "$SOURCECODE_WORK_DIR"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user