Skip to content

Fix ***/${project.artifactId}:${project.version}: bad substitution #12

Fix ***/${project.artifactId}:${project.version}: bad substitution

Fix ***/${project.artifactId}:${project.version}: bad substitution #12

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: ["another-feature"]
pull_request:
branches: ["another-feature"]
permissions:
contents: read
checks: write
id-token: write
jobs:
test:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.11.0
with:
java-version: 17
- name: Run tests
run: mvn test
- name: Generate report
uses: mikepenz/action-junit-report@v4
with:
report-path: target/surefire-reports
generate-html-report: true
build-and-push-docker-image:
needs: test
runs-on: ubuntu-latest
steps:
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.11.0
with:
java-version: 17
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
run: mvn spring-boot:build-image -Ddockerfile=Dockerfile.layers -DskipTests
- name: print JAR_FILE
run: echo $projectVersion
- name: print JAR_FILE
run: echo $projectArtefactId
- name: Push image
run: docker push ${{ secrets.DOCKER_USERNAME }}/${{ projectArtefactId }}:${{ projectVersion }}

Check failure on line 62 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / Java CI with Maven

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yml (Line: 62, Col: 12): Unrecognized named-value: 'projectArtefactId'. Located at position 1 within expression: projectArtefactId