Skip to content

Commit a89d3ef

Browse files
committed
Fix wrong version in deploy pipeline
1 parent 4ebc5e5 commit a89d3ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ jobs:
3030
distribution: 'liberica'
3131
java-version: '21'
3232

33+
- name: Get Maven version
34+
run: |
35+
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
36+
echo "Project Maven Version: $VERSION"
37+
echo "VERSION=$VERSION" >> $GITHUB_ENV
38+
3339
- name: Build with Maven
3440
run: mvn spring-boot:build-image -DskipTests
3541

3642
- name: Push Docker image
37-
run: docker push ghcr.io/tutorialwork/kleinanzeigen-ads-renewer:${{ github.ref_name }}
43+
run: docker push ghcr.io/tutorialwork/kleinanzeigen-ads-renewer:${{ env.VERSION }}

0 commit comments

Comments
 (0)