containers-gem-compiler/bootstrap.sh
f fc6ae9f931
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: support cmake flags
2023-07-18 15:20:01 -03:00

15 lines
427 B
Bash
Executable file

#!/bin/sh
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
CMAKE_FLAGS="${CMAKE_FLAGS}" \
su-exec builder /usr/local/bin/gem-compiler
exit_status=$?
test -n "${EXTRA_PKGS}" && apk del ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem uninstall --all ${EXTRA_GEMS}
exit ${exit_status}