Compare commits

..

2 commits

Author SHA1 Message Date
f
ca77a52c01 capture failures
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-02-15 10:23:29 -03:00
f
280b3b8897 cleanup after build 2022-02-15 10:23:07 -03:00
2 changed files with 12 additions and 2 deletions

View file

@ -1,7 +1,13 @@
#!/bin/sh #!/bin/sh
set -e
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS} test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS} test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
su-exec builder /usr/local/bin/gem-compiler 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}

View file

@ -21,6 +21,8 @@ find build/ -type f |
source "${BUILD}" source "${BUILD}"
set +e
HTTP_BASIC_USER="${HTTP_BASIC_USER}" \ HTTP_BASIC_USER="${HTTP_BASIC_USER}" \
HTTP_BASIC_PASSWORD="${HTTP_BASIC_PASSWORD}" \ HTTP_BASIC_PASSWORD="${HTTP_BASIC_PASSWORD}" \
SUTTY="${SUTTY}" \ SUTTY="${SUTTY}" \
@ -30,12 +32,14 @@ find build/ -type f |
EXTRA_PKGS="${EXTRA_PKGS}" \ EXTRA_PKGS="${EXTRA_PKGS}" \
EXTRA_GEMS="${EXTRA_GEMS}" \ EXTRA_GEMS="${EXTRA_GEMS}" \
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
/usr/local/bin/bootstrap || true /usr/local/bin/bootstrap
if test $? -ne 0 ; then if test $? -ne 0 ; then
BUILT="${FAILED}" BUILT="${FAILED}"
fi fi
set -e
dirname "${BUILT}" | xargs mkdir -p dirname "${BUILT}" | xargs mkdir -p
touch "${BUILT}" touch "${BUILT}"
done done