cleanup after build
This commit is contained in:
parent
6b23dd47e2
commit
280b3b8897
1 changed files with 7 additions and 1 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}
|
||||
|
|
Loading…
Reference in a new issue