From e1d1d2883a0b9908d0e7e81ea7fb2d1d5369b938 Mon Sep 17 00:00:00 2001 From: Derek Moore Date: Wed, 20 Oct 2021 09:17:51 -0500 Subject: [PATCH 1/2] Issue 1: Update to Pravega 0.9.1 Signed-off-by: Derek Moore --- gradle.properties | 6 +++--- scripts/build-docker.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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"} From d114e5b4d96ca1c0e08e5a8d7f0aa07b9dcd64bf Mon Sep 17 00:00:00 2001 From: Derek Moore Date: Wed, 20 Oct 2021 09:36:04 -0500 Subject: [PATCH 2/2] Issue 4: Add Actions CI to test Docker image build Signed-off-by: Derek Moore --- .github/workflows/build.yml | 10 ++++++++++ scripts/test-build.sh | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100755 scripts/test-build.sh 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/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}