We will not provide support for herokuish on either as herokuish is meant to be Heroku-compatible, and the Heroku stack does not support arm. Use 'pack' or Dockerfiles for app building instead.
33 lines
802 B
Bash
Executable File
33 lines
802 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-builder-herokuish-builder-detect() {
|
|
declare desc="builder-herokuish builder-detect plugin trigger"
|
|
declare trigger="builder-detect"
|
|
declare APP="$1" SOURCECODE_WORK_DIR="$2"
|
|
local ARCHITECTURE="$(dpkg --print-architecture 2>/dev/null || true)"
|
|
|
|
if [[ "$ARCHITECTURE" == "armhf" ]] || [[ "$ARCHITECTURE" == "arm64" ]]; then
|
|
return
|
|
fi
|
|
|
|
if fn-has-buildpacks-file "$SOURCECODE_WORK_DIR"; then
|
|
echo "herokuish"
|
|
return
|
|
fi
|
|
|
|
if fn-has-buildpack-dotenv "$SOURCECODE_WORK_DIR"; then
|
|
echo "herokuish"
|
|
return
|
|
fi
|
|
|
|
if fn-has-buildpack-env "$APP"; then
|
|
echo "herokuish"
|
|
return
|
|
fi
|
|
}
|
|
|
|
trigger-builder-herokuish-builder-detect "$@"
|