| .. | ||
| action.yml | ||
| README.md | ||
maven-build
Run a Maven build -- verify-only for PRs or package+jib push for deploys.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
maven-settings |
Yes | Secret containing settings.xml content |
|
java-version |
No | 8 |
Java version |
maven-image |
No | maven:3.8.5-openjdk-8 |
Maven Docker image |
phase |
No | verify |
Build phase: verify or package-and-push |
verify-goals |
No | spotless:check checkstyle:check compile |
Goals for the verify phase |
maven-profile |
No | test |
Maven profile used during package-and-push |
service-dir |
No | . |
Working directory containing the POM |
skip-tests |
No | false |
Pass -DskipTests |
image-tag |
No | ${{ github.sha }}-${{ github.run_id }} |
Docker image tag for jib |
extra-args |
No | Additional Maven CLI arguments |
Usage
- uses: schmalz/shared-actions/.github/actions/maven-build@v1
with:
maven-settings: ${{ secrets.MAVEN_SETTINGS }}
phase: package-and-push
Notes
- Maven repository cache is restored/saved automatically using
pom.xmlhash. - The
settings.xmlis written to a temp file and cleaned up after the build.