-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to JAVA 11 to allow modern SSL ciphers on outgoing connectons
- Loading branch information
Showing
5 changed files
with
38 additions
and
28 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 |
---|---|---|
|
@@ -12,12 +12,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 1.8 | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '11' | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
|
@@ -19,17 +19,17 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JAVA 8 | ||
- name: Set up JAVA 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 8 | ||
java-version: 11 | ||
distribution: "temurin" | ||
|
||
- name: Determine the version | ||
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_OUTPUT | ||
id: versioncheck | ||
|
||
- name: Exit when workflow_dispatch is triggered, and the version does not contain SNAPSHOT in it's name | ||
- name: Exit when workflow_dispatch is triggered, and the version does not contain SNAPSHOT in the name | ||
run: | | ||
echo "Only SNAPSHOT releases can be triggered with the workflow_dispatch" | ||
exit 1 | ||
|
@@ -41,21 +41,21 @@ jobs: | |
exit 1 | ||
if: github.event_name != 'workflow_dispatch' && steps.versioncheck.outputs.version != github.ref_name | ||
|
||
- name: Set up JDK 8 for snapshots | ||
- name: Set up JDK 11 for snapshots | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "8" | ||
java-version: "11" | ||
distribution: "temurin" | ||
cache: "maven" | ||
server-id: openconext-snapshots | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
if: ( endsWith(steps.versioncheck.outputs.version, '-SNAPSHOT')) | ||
|
||
- name: Set up JDK 8 for releases | ||
- name: Set up JDK 11 for releases | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "8" | ||
java-version: "11" | ||
distribution: "temurin" | ||
cache: "maven" | ||
server-id: openconext-releases | ||
|
@@ -103,7 +103,9 @@ jobs: | |
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Codecov | ||
uses: codecov/[email protected] | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM eclipse-temurin:8-jdk-alpine | ||
FROM eclipse-temurin:11-jdk-alpine | ||
RUN apk --update upgrade && apk add openssl openssl-dev ca-certificates libgcc && update-ca-certificates | ||
COPY target/*.jar app.jar | ||
ENTRYPOINT ["java","-jar","/app.jar"] |
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