mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 13:50:28 +05:30
Use CI docker images for tests.
This commit is contained in:
parent
19ccb3fdfb
commit
ad6ae22cb5
20
.github/workflows/docker-build-test.yml
vendored
20
.github/workflows/docker-build-test.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user