Skip to content

Commit d8eeb1c

Browse files
committed
fix: Use single quotes for Maven property in workflow
Backslash escaping passed the literal string '${project.version}' to Maven, which failed because it's not a valid Docker tag. Single quotes prevent bash variable expansion while allowing Maven to resolve the property.
1 parent a69bfa6 commit d8eeb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/server-pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
5151
run: |
5252
mvn --batch-mode deploy -Pdocker -Dmaven.deploy.skip \
53-
-Djib.to.tags=\${project.version} \
53+
'-Djib.to.tags=${project.version}' \
5454
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5555
-Dsonar.projectKey=aehrc_pathling -Dsonar.organization=aehrc \
5656
-Dsonar.host.url=https://sonarcloud.io \

0 commit comments

Comments
 (0)