chore: drop unused code

The builder-pack rename makes this unnecessary.
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-28 15:31:56 -05:00
parent 6462dd891c
commit 43b9d9d4b6

View File

@@ -8,19 +8,6 @@ trigger-builder-dockerfile-builder-detect() {
declare trigger="builder-detect"
declare APP="$1" SOURCECODE_WORK_DIR="$2"
# buildpacks always win against dockerfile detection
# that includes cnb
if [[ -f "$SOURCECODE_WORK_DIR/project.toml" ]]; then
return
fi
# buildpacks always win against dockerfile detection
# that includes cnb
if [[ "$(config_get "$APP" DOKKU_CNB_EXPERIMENTAL || true)" == "1" ]]; then
echo "cnb"
return
fi
if [[ -f "$SOURCECODE_WORK_DIR/Dockerfile" ]]; then
echo "dockerfile"
return