From ad6ae22cb5fe4a79c591cc56c5899c4996d5ddbb Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 17 Sep 2022 20:32:37 +0530 Subject: [PATCH] Use CI docker images for tests. --- .github/workflows/docker-build-test.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index cffe13c..6dbdb25 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -19,15 +19,25 @@ jobs: - testing/docker-compose.cockroachdb.yml - testing/docker-compose.yugabytedb.yml dockerfile: - - Dockerfile - - Dockerfile.openj9 - - Dockerfile.graalvm-jvm + - Dockerfile.ci + - Dockerfile.openj9.ci + - Dockerfile.graalvm-jvm.ci steps: - uses: actions/checkout@v3 - name: Create Version File run: echo $(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD) > VERSION - - name: Build Locally - uses: docker/build-push-action@v3.1.1 + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + check-latest: true + cache: "gradle" + - name: Run Build + run: ./gradlew shadowJar + - run: mv build/libs/piped-*-all.jar piped.jar + - name: Build Image Locally + uses: docker/build-push-action@v3 with: context: . load: true