normalise 'build' function args to match 'release' and 'deploy'

This commit is contained in:
Lee Henson committed 2013-10-10 18:23:52 +01:00
1 parent 04e7934104
commit c05007a9d2
1 file changed
+3 -2
+3 -2
View File
@@ -6,7 +6,7 @@ case "$1" in
receive) receive)
APP="$2"; IMAGE="app/$APP" APP="$2"; IMAGE="app/$APP"
echo "-----> Building $APP ..." echo "-----> Building $APP ..."
cat | dokku build $IMAGE cat | dokku build $APP $IMAGE
echo "-----> Build complete!" echo "-----> Build complete!"
echo "-----> Releasing $APP ..." echo "-----> Releasing $APP ..."
dokku release $APP $IMAGE dokku release $APP $IMAGE
@@ -23,10 +23,11 @@ case "$1" in
;; ;;
build) build)
IMAGE="$2" APP="$2"; IMAGE="$3"
id=$(cat | docker run -i -a stdin progrium/buildstep /bin/bash -c "mkdir -p /app && tar -xC /app") id=$(cat | docker run -i -a stdin progrium/buildstep /bin/bash -c "mkdir -p /app && tar -xC /app")
test $(docker wait $id) -eq 0 test $(docker wait $id) -eq 0
docker commit $id $IMAGE > /dev/null docker commit $id $IMAGE > /dev/null
pluginhook pre-build $APP $IMAGE
id=$(docker run -d $IMAGE /build/builder) id=$(docker run -d $IMAGE /build/builder)
docker attach $id docker attach $id
test $(docker wait $id) -eq 0 test $(docker wait $id) -eq 0