Skip to content

Commit 1423342

Browse files
committed
Refactored docker deploy
1 parent 783e00b commit 1423342

File tree

5 files changed

+50
-39
lines changed

5 files changed

+50
-39
lines changed

.github/workflows/actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-java@v4
2929
with:
30-
java-version: 21
30+
java-version: 17
3131
distribution: "temurin"
3232
- uses: actions/cache@v4
3333
with:

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set up JDK 21
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v4
2121
with:
22-
java-version: "21"
22+
java-version: "17"
2323
distribution: "temurin"
2424
server-id: openconext-releases
2525
server-username: MAVEN_USERNAME
@@ -49,21 +49,21 @@ jobs:
4949
exit 1
5050
if: github.event_name != 'workflow_dispatch' && steps.versioncheck.outputs.version != github.ref_name
5151

52-
- name: Set up JDK 21 for snapshots
52+
- name: Set up JDK 17 for snapshots
5353
uses: actions/setup-java@v4
5454
with:
55-
java-version: "21"
55+
java-version: "17"
5656
distribution: "temurin"
5757
cache: "maven"
5858
server-id: openconext-snapshots
5959
server-username: MAVEN_USERNAME
6060
server-password: MAVEN_PASSWORD
6161
if: ( endsWith(steps.versioncheck.outputs.version, '-SNAPSHOT'))
6262

63-
- name: Set up JDK 21 for releases
63+
- name: Set up JDK 17 for releases
6464
uses: actions/setup-java@v4
6565
with:
66-
java-version: "21"
66+
java-version: "17"
6767
distribution: "temurin"
6868
cache: "maven"
6969
server-id: openconext-releases

oidc/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM eclipse-temurin:21-jdk-alpine
1+
FROM eclipse-temurin:17-jdk-alpine
22
COPY target/*.jar app.jar
33
ENTRYPOINT ["java","-jar","/app.jar"]

oidc/pom.xml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,6 @@
275275
<artifactId>git-commit-id-maven-plugin</artifactId>
276276
<version>${git-commit-id-maven-plugin.version}</version>
277277
</plugin>
278-
<plugin>
279-
<groupId>org.apache.maven.plugins</groupId>
280-
<artifactId>maven-compiler-plugin</artifactId>
281-
<version>${maven-compiler-plugin.version}</version>
282-
<configuration>
283-
<release>${java.version}</release>
284-
</configuration>
285-
</plugin>
286278
<plugin>
287279
<groupId>org.jacoco</groupId>
288280
<artifactId>jacoco-maven-plugin</artifactId>
@@ -302,29 +294,6 @@
302294
</execution>
303295
</executions>
304296
</plugin>
305-
<plugin>
306-
<groupId>org.apache.maven.plugins</groupId>
307-
<artifactId>maven-enforcer-plugin</artifactId>
308-
<version>${maven-enforcer-plugin.version}</version>
309-
<executions>
310-
<execution>
311-
<id>enforce-versions</id>
312-
<goals>
313-
<goal>enforce</goal>
314-
</goals>
315-
<configuration>
316-
<rules>
317-
<requireMavenVersion>
318-
<version>${require-maven.version}</version>
319-
</requireMavenVersion>
320-
<requireJavaVersion>
321-
<version>${java.version}</version>
322-
</requireJavaVersion>
323-
</rules>
324-
</configuration>
325-
</execution>
326-
</executions>
327-
</plugin>
328297
</plugins>
329298
<extensions>
330299
<extension>

pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,48 @@
7676
</build>
7777
</profile>
7878
</profiles>
79+
<build>
80+
<plugins>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-compiler-plugin</artifactId>
84+
<version>${maven-compiler-plugin.version}</version>
85+
<configuration>
86+
<release>21</release>
87+
</configuration>
88+
</plugin>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-enforcer-plugin</artifactId>
92+
<version>${maven-enforcer-plugin.version}</version>
93+
<executions>
94+
<execution>
95+
<id>enforce-versions</id>
96+
<goals>
97+
<goal>enforce</goal>
98+
</goals>
99+
<configuration>
100+
<rules>
101+
<requireMavenVersion>
102+
<version>${require-maven.version}</version>
103+
</requireMavenVersion>
104+
<requireJavaVersion>
105+
<version>${java.version}</version>
106+
</requireJavaVersion>
107+
</rules>
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
</plugins>
113+
<extensions>
114+
<extension>
115+
<groupId>org.apache.maven.wagon</groupId>
116+
<artifactId>wagon-webdav-jackrabbit</artifactId>
117+
<version>3.5.3</version>
118+
</extension>
119+
</extensions>
120+
</build>
79121

80122
<repositories>
81123
<repository>

0 commit comments

Comments
 (0)