self-ci/java/build.sh
moparisthebest 10412743e9
Some checks failed
moparisthebest/self-ci/pipeline/head There was a failure building this commit
Remove some now unnecessary path fallbacks
2020-11-26 20:33:48 -05:00

9 lines
378 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
BUILD_SCRIPT="$1"
shift
[ "" == "$BUILD_SCRIPT" ] && [ -f '.ci/build.sh' ] && BUILD_SCRIPT='.ci/build.sh'
docker run --rm -v "$HOME/.netrc:/root/.netrc:ro" -v "$HOME/.m2:/m2" -v "$HOME/.npm:/npm" -v "$PWD:/build" -e BRANCH_NAME -e BUILD_UID=$UID -e BUILD_GID=$(id -g) moparisthebest/self-ci-java:latest /usr/bin/run-java-all "$BUILD_SCRIPT" "$@"