diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c6605f4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,10 @@ +name: build +on: [pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Test Docker image build + run: ./scripts/test-build.sh diff --git a/gradle.properties b/gradle.properties index 0b4f1e2..7e271cf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,12 +10,12 @@ ### dependencies logbackVersion=1.2.3 logstashLogbackEncoderVersion=4.11 -pravegaCredentialsVersion=0.8.0-38.808ad78-SNAPSHOT -pravegaVersion=0.8.0-2623.279ac21-SNAPSHOT +pravegaCredentialsVersion=0.9.0 +pravegaVersion=0.9.1 slf4jApiVersion=1.7.25 # Set below to true when using Pravega in SDP. includePravegaCredentials=true ### outputs -samplesVersion=0.8.0 +samplesVersion=0.9.1 diff --git a/scripts/build-docker.sh b/scripts/build-docker.sh index 2714556..2012c0f 100755 --- a/scripts/build-docker.sh +++ b/scripts/build-docker.sh @@ -5,7 +5,7 @@ ROOT_DIR=$(dirname $0)/.. export DOCKER_REPOSITORY=${DOCKER_REPOSITORY:-claudiofahey} # Below should match the Pravega version -export IMAGE_TAG=${IMAGE_TAG:-0.8.0} +export IMAGE_TAG=${IMAGE_TAG:-0.9.1} : ${DOCKER_REPOSITORY?"You must export DOCKER_REPOSITORY"} : ${IMAGE_TAG?"You must export IMAGE_TAG"} diff --git a/scripts/test-build.sh b/scripts/test-build.sh new file mode 100755 index 0000000..988df90 --- /dev/null +++ b/scripts/test-build.sh @@ -0,0 +1,6 @@ +#! /bin/bash +set -ex + +ROOT_DIR=$(dirname $0)/.. + +docker build --no-cache -f ${ROOT_DIR}/pravega-tester/Dockerfile ${ROOT_DIR}