Merge pull request #373 from TeamPiped/ci-build-flavor

Use CI docker images for tests.
This commit is contained in:
Kavin 2022-09-17 20:36:45 +05:30 committed by GitHub
commit 83dc2e5833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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