WIP #265
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: Maven Build | |
# Run workflow for any push to a branch | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '**' | |
workflow_dispatch: | |
# Only permit one build per branch/tag | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: ${{ !contains(github.ref_name, 'release/') }} | |
jobs: | |
maven-build: | |
uses: Telicent-oss/shared-workflows/.github/workflows/parallel-maven.yml@main | |
with: | |
# Some Docker based tests in this repository but should be fine to pull the images we need without login | |
USES_DOCKERHUB_IMAGES: false | |
# Want SNAPSHOTs to be published from main | |
PUBLISH_SNAPSHOTS: true | |
MAIN_BRANCH: main | |
# Parallel tests are not reliable on resource constrained GitHub Actions workers | |
MAVEN_ARGS: -Dtest.maxForks=1 | |
# If running in debug mode, use appropriate logging | |
MAVEN_DEBUG_ARGS: -Dlogback.configurationFile=logback-debug.xml | |
# Target Java 17 to maximise library portability | |
JAVA_VERSION: 17 | |
secrets: inherit | |
docker-build: | |
needs: maven-build | |
uses: telicent-oss/shared-workflows/.github/workflows/docker-push-to-registries.yml@main | |
with: | |
APP_NAME: smart-cache-debug-tools | |
APP_NAME_PREFIX: "" | |
PATH: . | |
DOCKERFILE: docker/Dockerfile | |
VERSION: ${{ needs.maven-build.outputs.version }} | |
TARGET: smart-cache-debug-tools | |
BUILD_ARGS: | | |
PROJECT_VERSION=${{ needs.maven-build.outputs.version }} | |
USES_MAVEN: true | |
# Container image is built for Java 21 to be as up to date as possible | |
JAVA_VERSION: 21 | |
secrets: inherit | |