Skip to content

Commit 8586af6

Browse files
authored
Improves docker release workflow (#775)
1 parent 199c29b commit 8586af6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docker-milestone-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,20 @@ jobs:
6969
distribution: 'temurin'
7070
cache: maven
7171

72-
- name: Build all modules first
73-
run: mvn clean install -DskipTests
74-
7572
- name: Extract Release Tag
7673
id: extract_tag
7774
run: |
7875
# Extract the release tag from the GitHub context
7976
TAG_NAME=${GITHUB_REF#refs/tags/}
8077
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
8178
79+
# Set the project version from the release tag
80+
- name: Set project version from tag
81+
run: mvn --batch-mode versions:set -DnewVersion=${{ env.TAG_NAME }} -DgenerateBackupPoms=false
82+
83+
- name: Build all modules first
84+
run: mvn clean install -DskipTests
85+
8286
# Build the project
8387
# For registry modules, we activate the dockerbuild profile and specify the module with --pl
8488
- name: Build BaSyx

0 commit comments

Comments
 (0)