File tree Expand file tree Collapse file tree 5 files changed +19
-58
lines changed Expand file tree Collapse file tree 5 files changed +19
-58
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,18 @@ jobs:
29
29
distribution : ' liberica'
30
30
java-version : ' 21'
31
31
32
- - name : Get Maven version
32
+ - name : Get Maven project version
33
33
run : |
34
34
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
35
35
echo "Project Maven Version: $VERSION"
36
36
echo "VERSION=$VERSION" >> $GITHUB_ENV
37
37
38
- - name : Build with Maven
39
- run : mvn spring-boot:build-image -DskipTests
38
+ - name : Build JAR with Maven
39
+ run : mvn clean package -DskipTests
40
40
41
- - name : Push Docker image
42
- run : docker push tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }}
41
+ - name : Build & Push Multi Arch Docker Image
42
+ run : |
43
+ docker buildx build --platform linux/amd64,linux/arm64 \
44
+ -t tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }} \
45
+ -t tutorialwork/kleinanzeigen-ads-renewer:latest \
46
+ --push .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM eclipse-temurin:21-jre-ubi9-minimal
2
+
3
+ WORKDIR /var/lib/kleinanzeigen-ads-renewer
4
+
5
+ ADD target/kleinanzeigen-ads-renewer-*.jar kleinanzeigen-ads-renewer.jar
6
+
7
+ ENV JAVA_OPTIONS="-Xms128M -Xmx1024M"
8
+
9
+ CMD ["sh" , "-c" , "java $JAVA_OPTIONS -jar kleinanzeigen-ads-renewer.jar" ]
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ The host name for iCloud is: ``imap.mail.me.com``
38
38
``` yaml
39
39
services :
40
40
app :
41
- image : tutorialwork/kleinanzeigen-ads-renewer:1.2.0
41
+ image : tutorialwork/kleinanzeigen-ads-renewer:latest
42
42
environment :
43
43
- IMAP_SERVERS_GMAIL_HOST=imap.gmail.com
44
44
- IMAP_SERVERS_GMAIL_USERNAME=YOUR_GMAIL_EMAIL
Original file line number Diff line number Diff line change 85
85
<groupId >org.springframework.boot</groupId >
86
86
<artifactId >spring-boot-maven-plugin</artifactId >
87
87
<configuration >
88
- <image >
89
- <name >tutorialwork/kleinanzeigen-ads-renewer:${project.version} </name >
90
- <buildpacks >
91
- <buildpack >paketobuildpacks/java</buildpack >
92
- </buildpacks >
93
- <env >
94
- <BP_JVM_VERSION >21</BP_JVM_VERSION >
95
- <BP_JVM_TYPE >JRE</BP_JVM_TYPE >
96
- </env >
97
- </image >
98
88
<excludes >
99
89
<exclude >
100
90
<groupId >org.projectlombok</groupId >
You can’t perform that action at this time.
0 commit comments