File tree Expand file tree Collapse file tree 4 files changed +46
-5
lines changed Expand file tree Collapse file tree 4 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 21
21
- name : Docker Login
22
22
uses : docker/login-action@v2
23
23
with :
24
- registry : ghcr.io
25
24
username : ${{ github.actor }}
26
- password : ${{ secrets.GHCR_TOKEN }}
25
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
27
26
28
27
- uses : actions/setup-java@v4
29
28
with :
40
39
run : mvn spring-boot:build-image -DskipTests
41
40
42
41
- name : Push Docker image
43
- run : docker push ghcr.io/ tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }}
42
+ run : docker push tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }}
Original file line number Diff line number Diff line change
1
+ name : Deploy x86 Docker Image
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows :
6
+ - ' Bump version'
7
+ types :
8
+ - completed
9
+
10
+ jobs :
11
+ build_and_push :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Set up Docker Buildx
19
+ uses : docker/setup-buildx-action@v2
20
+
21
+ - name : Docker Login
22
+ uses : docker/login-action@v2
23
+ with :
24
+ username : ${{ github.actor }}
25
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
26
+
27
+ - uses : actions/setup-java@v4
28
+ with :
29
+ distribution : ' liberica'
30
+ java-version : ' 21'
31
+
32
+ - name : Get Maven version
33
+ run : |
34
+ VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
35
+ echo "Project Maven Version: $VERSION"
36
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
37
+
38
+ - name : Build with Maven
39
+ run : mvn spring-boot:build-image -DskipTests
40
+
41
+ - name : Push Docker image
42
+ run : docker push tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }}
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 : ghcr.io/ tutorialwork/kleinanzeigen-ads-renewer:1.0.1
41
+ image : tutorialwork/kleinanzeigen-ads-renewer:1.2.0
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 86
86
<artifactId >spring-boot-maven-plugin</artifactId >
87
87
<configuration >
88
88
<image >
89
- <name >ghcr.io/ tutorialwork/kleinanzeigen-ads-renewer:${project.version} </name >
89
+ <name >tutorialwork/kleinanzeigen-ads-renewer:${project.version} </name >
90
90
<buildpacks >
91
91
<buildpack >paketobuildpacks/java</buildpack >
92
92
</buildpacks >
You can’t perform that action at this time.
0 commit comments