Update pre_build for docker hub autobuild

pull/147/head
johnniang 2019-05-09 01:29:10 +08:00
parent e3f07d8c32
commit 1d2e5feec0
1 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
#!/bin/bash
./gradlew clean build -x test
./gradlew clean build -x test
echo "=> Building the binary"
docker run \
-v $(pwd):/src \
-v /var/run/docker.sock:/var/run/docker.sock \
-w="/src" \
openjdk:8-jdk-alpine \
./gradlew clean build -x test
echo "=> Built the binary successfully"