Compare commits
2 commits
6b23dd47e2
...
ca77a52c01
Author | SHA1 | Date | |
---|---|---|---|
|
ca77a52c01 | ||
|
280b3b8897 |
2 changed files with 12 additions and 2 deletions
|
@ -1,7 +1,13 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
|
||||
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
|
||||
|
||||
su-exec builder /usr/local/bin/gem-compiler
|
||||
|
||||
exit_status=$?
|
||||
|
||||
test -n "${EXTRA_PKGS}" && apk del ${EXTRA_PKGS}
|
||||
test -n "${EXTRA_GEMS}" && gem uninstall ${EXTRA_GEMS}
|
||||
|
||||
exit ${exit_status}
|
||||
|
|
|
@ -21,6 +21,8 @@ find build/ -type f |
|
|||
|
||||
source "${BUILD}"
|
||||
|
||||
set +e
|
||||
|
||||
HTTP_BASIC_USER="${HTTP_BASIC_USER}" \
|
||||
HTTP_BASIC_PASSWORD="${HTTP_BASIC_PASSWORD}" \
|
||||
SUTTY="${SUTTY}" \
|
||||
|
@ -30,12 +32,14 @@ find build/ -type f |
|
|||
EXTRA_PKGS="${EXTRA_PKGS}" \
|
||||
EXTRA_GEMS="${EXTRA_GEMS}" \
|
||||
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
|
||||
/usr/local/bin/bootstrap || true
|
||||
/usr/local/bin/bootstrap
|
||||
|
||||
if test $? -ne 0 ; then
|
||||
BUILT="${FAILED}"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
dirname "${BUILT}" | xargs mkdir -p
|
||||
touch "${BUILT}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue