Skip to content

Commit c265cb4

Browse files
authored
Fix version description in Docker workflow
1 parent 922f403 commit c265cb4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/create-dockerfiles.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
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 }}

0 commit comments

Comments
 (0)