mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #373 from TeamPiped/ci-build-flavor
Use CI docker images for tests.
This commit is contained in:
commit
83dc2e5833
1 changed files with 15 additions and 5 deletions
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 a new issue