Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Add the ability to specify the buildpacks file to use based on environment #34

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ function indent() {

unset GIT_DIR

for BUILDPACK in $(cat $1/.buildpacks); do
DEFAULT_BUILDPACKS_FILE=".buildpacks"

if [ -f "$3/BUILDPACKS_FILE" ]; then
BUILDPACKS_FILE=$(cat "$3/BUILDPACKS_FILE")
else
BUILDPACKS_FILE=$DEFAULT_BUILDPACKS_FILE
fi

echo "=====> Using buildpacks file: $BUILDPACKS_FILE"

for BUILDPACK in $(cat $1/$BUILDPACKS_FILE); do
dir=$(mktemp -t buildpackXXXXX)
rm -rf $dir

Expand Down