File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 version :
7- description : ' Version tag to use for Docker images (e.g. v3 .0.0)'
7+ description : ' Version tag to use for Docker images (e.g. 3 .0.0)'
88 required : true
99 type : string
1010
@@ -52,17 +52,22 @@ jobs:
5252 echo "JAVA_17_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
5353 echo "JAVA_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
5454
55+ - name : Build Project
56+ run : mvn install -DskipTests=true
57+
5558 - name : Determine Version
5659 id : version
5760 run : |
5861 if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
5962 VERSION="${{ github.event.inputs.version }}"
6063 else
6164 VERSION="${GITHUB_REF#refs/tags/}"
65+ # Strip leading 'v' if present (e.g. v3.0.4 → 3.0.4)
66+ VERSION="${VERSION#v}"
6267 fi
6368 echo "Using version: $VERSION"
6469 echo "version=$VERSION" >> $GITHUB_OUTPUT
65-
70+
6671 - name : Build All Docker Images
6772 run : |
6873 export DOCKER_REPO=${{ secrets.docker_username }}
You can’t perform that action at this time.
0 commit comments