Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Commit

Permalink
github actions support
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Dec 22, 2022
1 parent 4c8b010 commit 7dd7ce4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ jobs:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check out code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Test Coverage
run: ./gradlew clean build jacocoTestReport jacocoFix --scan
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand Down
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
FROM eclipse-temurin:17 AS builder
COPY . /src
WORKDIR /src
RUN ./gradlew build

FROM ghcr.io/wisvch/spring-boot-base:2.5.5
COPY --from=builder /src/build/libs/feedback.jar /srv/feedback.jar
COPY ./build/libs/feedback.jar /srv/feedback.jar
CMD ["/srv/feedback.jar"]
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ task jacocoFix(type: Copy) {
}
}

test {
maxHeapSize = "4096m"
}
check.dependsOn jacocoTestReport

1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'feedback'

0 comments on commit 7dd7ce4

Please sign in to comment.