Skip to content

Commit

Permalink
update to java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
nr23730 committed Jan 18, 2024
1 parent 664a817 commit b4fbfc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
java-version: '21'
- name: Build with Maven
run: mvn install
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
- name: Set up JDK 12
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
java-version: '21'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM maven:3.8.6-openjdk-11-slim as build
FROM maven:3-eclipse-temurin-21 as build

COPY $PWD /mtbexporter
WORKDIR /mtbexporter

RUN mvn install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true

FROM gcr.io/distroless/java11-debian11
FROM gcr.io/distroless/java-base-debian12:latest

COPY --from=build /mtbexporter/target/mtbexporter-*-jar-with-dependencies.jar /app/mtbexporter.jar
ENTRYPOINT ["java", "-jar", "/app/mtbexporter.jar"]

0 comments on commit b4fbfc4

Please sign in to comment.