-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Java 21 on Jammy (Ubuntu 22.04 LTS)
- Loading branch information
1 parent
16db711
commit 66d4af0
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: eclipse-temurin-21-jammy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "eclipse-temurin-21-jammy/**" | ||
- .github/workflows/eclipse-temurin-21-jammy.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
pull_request: | ||
paths: | ||
- "eclipse-temurin-21-jammy/**" | ||
- .github/workflows/eclipse-temurin-21-jammy.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/_template.yml | ||
with: | ||
directory: eclipse-temurin-21-jammy | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM eclipse-temurin:21-jdk-jammy | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y ca-certificates curl git --no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# common for all images | ||
ENV MAVEN_HOME /usr/share/maven | ||
|
||
COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml | ||
|
||
RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn | ||
|
||
ARG MAVEN_VERSION=3.9.6 | ||
ARG USER_HOME_DIR="/root" | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] |