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.cockroachdb.yml
|
||||||
- testing/docker-compose.yugabytedb.yml
|
- testing/docker-compose.yugabytedb.yml
|
||||||
dockerfile:
|
dockerfile:
|
||||||
- Dockerfile
|
- Dockerfile.ci
|
||||||
- Dockerfile.openj9
|
- Dockerfile.openj9.ci
|
||||||
- Dockerfile.graalvm-jvm
|
- Dockerfile.graalvm-jvm.ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Create Version File
|
- name: Create Version File
|
||||||
run: echo $(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD) > VERSION
|
run: echo $(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD) > VERSION
|
||||||
- name: Build Locally
|
- name: set up JDK 17
|
||||||
uses: docker/build-push-action@v3.1.1
|
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:
|
with:
|
||||||
context: .
|
context: .
|
||||||
load: true
|
load: true
|
||||||
|
|
Loading…
Reference in a new issue