Fix Unrecognized named-value: 'projectArtefactId' #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $project.Version | ||
- name: print JAR_FILE | ||
run: echo $project.ArtefactId | ||
- name: Push image | ||
run: docker push ${{ secrets.DOCKER_USERNAME }}/${{ project.ArtefactId }}:${{ project.Version }} | ||
Check failure on line 62 in .github/workflows/CI.yml GitHub Actions / Java CI with MavenInvalid workflow file
|